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
4c275cc8
Commit
4c275cc8
authored
5 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Solve checkstyle issues and SpotBugs issues
parent
b2d62b05
No related branches found
No related tags found
1 merge request
!4
Neural network
Pipeline
#2265
passed
5 years ago
Stage: leaks
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/be/cylab/java/wowa/training/HyperParameters.java
+6
-6
6 additions, 6 deletions
...ain/java/be/cylab/java/wowa/training/HyperParameters.java
src/main/java/be/cylab/java/wowa/training/MainDL4J.java
+1
-1
1 addition, 1 deletion
src/main/java/be/cylab/java/wowa/training/MainDL4J.java
with
7 additions
and
7 deletions
src/main/java/be/cylab/java/wowa/training/HyperParameters.java
+
6
−
6
View file @
4c275cc8
...
@@ -47,14 +47,14 @@ public class HyperParameters {
...
@@ -47,14 +47,14 @@ public class HyperParameters {
final
OptimizationAlgorithm
algorithm
,
final
OptimizationAlgorithm
algorithm
,
final
Activation
activation_function
)
{
final
Activation
activation_function
)
{
this
(
neurons_number
,
learning_rate
,
algorithm
,
this
(
neurons_number
,
learning_rate
,
algorithm
,
activation_function
,
(
Double
)
null
);
activation_function
,
100
);
}
}
/**
/**
* Getter for neuron_number.
* Getter for neuron_number.
* @return
* @return
*/
*/
public
int
getNeuronsNumber
()
{
public
final
int
getNeuronsNumber
()
{
return
neurons_number
;
return
neurons_number
;
}
}
...
@@ -62,7 +62,7 @@ public class HyperParameters {
...
@@ -62,7 +62,7 @@ public class HyperParameters {
* Getter for learning rate.
* Getter for learning rate.
* @return
* @return
*/
*/
public
double
getLearningRate
()
{
public
final
double
getLearningRate
()
{
return
learning_rate
;
return
learning_rate
;
}
}
...
@@ -70,7 +70,7 @@ public class HyperParameters {
...
@@ -70,7 +70,7 @@ public class HyperParameters {
* Getter for backpropagation algorithm.
* Getter for backpropagation algorithm.
* @return
* @return
*/
*/
public
OptimizationAlgorithm
getAlgorithm
()
{
public
final
OptimizationAlgorithm
getAlgorithm
()
{
return
algorithm
;
return
algorithm
;
}
}
...
@@ -78,7 +78,7 @@ public class HyperParameters {
...
@@ -78,7 +78,7 @@ public class HyperParameters {
* Getter for activation function.
* Getter for activation function.
* @return
* @return
*/
*/
public
Activation
getActivationFunction
()
{
public
final
Activation
getActivationFunction
()
{
return
activation_function
;
return
activation_function
;
}
}
...
@@ -86,7 +86,7 @@ public class HyperParameters {
...
@@ -86,7 +86,7 @@ public class HyperParameters {
* Getter for percent_test_train.
* Getter for percent_test_train.
* @return
* @return
*/
*/
public
double
getPercentTestTrain
()
{
public
final
double
getPercentTestTrain
()
{
return
percent_test_train
;
return
percent_test_train
;
}
}
}
}
This diff is collapsed.
Click to expand it.
src/main/java/be/cylab/java/wowa/training/MainDL4J.java
+
1
−
1
View file @
4c275cc8
...
@@ -21,7 +21,7 @@ public final class MainDL4J {
...
@@ -21,7 +21,7 @@ public final class MainDL4J {
*/
*/
public
static
void
main
(
final
String
[]
args
)
{
public
static
void
main
(
final
String
[]
args
)
{
String
file_name
=
args
[
0
];
//
String file_name = args[0];
double
learning_rate
=
Double
.
parseDouble
(
args
[
1
]);
double
learning_rate
=
Double
.
parseDouble
(
args
[
1
]);
OptimizationAlgorithm
optimization_algorithm
;
OptimizationAlgorithm
optimization_algorithm
;
Activation
activation_function
;
Activation
activation_function
;
...
...
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