Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
java-wowa-training
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
java-wowa-training
Commits
fa63c231
Commit
fa63c231
authored
5 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Execution time added
parent
6abf6dc9
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Neural network
Pipeline
#2295
failed
5 years ago
Stage: leaks
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/be/cylab/java/wowa/training/MainTest.java
+9
-2
9 additions, 2 deletions
src/main/java/be/cylab/java/wowa/training/MainTest.java
with
9 additions
and
2 deletions
src/main/java/be/cylab/java/wowa/training/MainTest.java
+
9
−
2
View file @
fa63c231
...
@@ -60,11 +60,18 @@ public final class MainTest {
...
@@ -60,11 +60,18 @@ public final class MainTest {
TrainingDataset
dataset
=
new
TrainingDataset
(
data
,
expected
);
TrainingDataset
dataset
=
new
TrainingDataset
(
data
,
expected
);
List
<
TrainingDataset
>
folds
=
dataset
.
prepareFolds
(
10
);
List
<
TrainingDataset
>
folds
=
dataset
.
prepareFolds
(
10
);
System
.
out
.
println
(
"Neural Network learning"
);
HashMap
<
MultiLayerNetwork
,
Double
>
map_nn
=
nn
.
runKFold
(
folds
,
10
);
long
start_time
=
System
.
currentTimeMillis
(
);
System
.
out
.
println
(
"Wowa training"
);
System
.
out
.
println
(
"Wowa training"
);
HashMap
<
AbstractSolution
,
Double
>
map_wt
=
trainer
.
runKFold
(
folds
,
10
);
HashMap
<
AbstractSolution
,
Double
>
map_wt
=
trainer
.
runKFold
(
folds
,
10
);
long
end_time
=
System
.
currentTimeMillis
();
System
.
out
.
println
(
"Execution time : "
+
(
end_time
-
start_time
)
/
1000
+
" seconds"
);
start_time
=
System
.
currentTimeMillis
();
System
.
out
.
println
(
"Neural Network learning"
);
HashMap
<
MultiLayerNetwork
,
Double
>
map_nn
=
nn
.
runKFold
(
folds
,
10
);
end_time
=
System
.
currentTimeMillis
()
System
.
out
.
println
(
"Execution time : "
+
(
end_time
-
start_time
)
/
1000
+
" seconds"
);
double
nn_score
=
0.0
;
double
nn_score
=
0.0
;
double
wt_score
=
0.0
;
double
wt_score
=
0.0
;
...
...
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