Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TIPM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BARBIER Marc
TIPM
Commits
90b7d188
Unverified
Commit
90b7d188
authored
2 years ago
by
BARBIER Marc
Browse files
Options
Downloads
Patches
Plain Diff
renamed some methods DBA => DTw since we no longer are using dba
parent
25a9973a
Branches
Branches containing commit
Tags
v0.1.0
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/be/uantwerpen/mime_webapp/controller/ImageController.java
+2
-6
2 additions, 6 deletions
...be/uantwerpen/mime_webapp/controller/ImageController.java
with
2 additions
and
6 deletions
src/main/java/be/uantwerpen/mime_webapp/controller/ImageController.java
+
2
−
6
View file @
90b7d188
...
@@ -117,10 +117,6 @@ public class ImageController extends AbstractController {
...
@@ -117,10 +117,6 @@ public class ImageController extends AbstractController {
height
=
image
.
length
;
height
=
image
.
length
;
width
=
image
[
0
].
length
;
width
=
image
[
0
].
length
;
//DBA is extremely costly in memory so we use a windowed approach
// in the mid time this will allow to estimage the memory usage
// to calculate the memory usage sequences[i].length^2 * 12 * number of images
// wich make it un realisticly large. so we added a window allowing us to get only a subset of that
if
(
dataset
==
null
)
{
if
(
dataset
==
null
)
{
dataset
=
new
double
[
image
[
0
][
0
].
length
][
image
[
0
].
length
*
image
.
length
][
imageIds
.
length
];
dataset
=
new
double
[
image
[
0
][
0
].
length
][
image
[
0
].
length
*
image
.
length
][
imageIds
.
length
];
}
}
...
@@ -135,7 +131,7 @@ public class ImageController extends AbstractController {
...
@@ -135,7 +131,7 @@ public class ImageController extends AbstractController {
}
}
@PostMapping
(
"/image/dtwcluster"
)
@PostMapping
(
"/image/dtwcluster"
)
public
ResponseEntity
<
String
>
DBAkm
eans
(
public
ResponseEntity
<
String
>
dtwKM
eans
(
@RequestParam
(
"ids"
)
int
[]
ids
,
@RequestParam
(
"ids"
)
int
[]
ids
,
@RequestParam
(
"k"
)
int
k
,
@RequestParam
(
"k"
)
int
k
,
@RequestParam
(
"maxiterations"
)
int
iteration
,
@RequestParam
(
"maxiterations"
)
int
iteration
,
...
@@ -203,7 +199,7 @@ public class ImageController extends AbstractController {
...
@@ -203,7 +199,7 @@ public class ImageController extends AbstractController {
}
}
@PostMapping
(
"/image/cluster"
)
@PostMapping
(
"/image/cluster"
)
public
ResponseEntity
<
String
>
k
m
eans
(
public
ResponseEntity
<
String
>
k
M
eans
(
@RequestParam
(
"ids"
)
int
[]
ids
,
@RequestParam
(
"ids"
)
int
[]
ids
,
@RequestParam
(
"k"
)
int
k
,
@RequestParam
(
"k"
)
int
k
,
@RequestParam
(
"maxiterations"
)
int
iteration
,
@RequestParam
(
"maxiterations"
)
int
iteration
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment