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
5ab90552
Commit
5ab90552
authored
5 years ago
by
a.croix
Browse files
Options
Downloads
Patches
Plain Diff
Solve checkstyle issues
parent
6f92c1d3
No related branches found
No related tags found
1 merge request
!4
Neural network
Pipeline
#2270
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/HyperParameters.java
+6
-5
6 additions, 5 deletions
...ain/java/be/cylab/java/wowa/training/HyperParameters.java
with
6 additions
and
5 deletions
src/main/java/be/cylab/java/wowa/training/HyperParameters.java
+
6
−
5
View file @
5ab90552
...
...
@@ -93,7 +93,7 @@ public class HyperParameters {
/**
* @param neurons_number
*/
public
void
setNeuronsNumber
(
final
int
neurons_number
)
{
public
final
void
setNeuronsNumber
(
final
int
neurons_number
)
{
if
(
neurons_number
<
5
||
neurons_number
>
80
)
{
throw
new
IllegalArgumentException
(
"Neuron number must be between 5 and 80"
);
...
...
@@ -104,7 +104,7 @@ public class HyperParameters {
/**
* @param learning_rate
*/
public
void
setLearningRate
(
final
double
learning_rate
)
{
public
final
void
setLearningRate
(
final
double
learning_rate
)
{
if
(
learning_rate
<=
0.0
||
learning_rate
>=
1.0
)
{
throw
new
IllegalArgumentException
(
"Learning rate must be between 0 and 1"
);
...
...
@@ -115,21 +115,22 @@ public class HyperParameters {
/**
* @param algorithm
*/
public
void
setAlgorithm
(
final
OptimizationAlgorithm
algorithm
)
{
public
final
void
setAlgorithm
(
final
OptimizationAlgorithm
algorithm
)
{
this
.
algorithm
=
algorithm
;
}
/**
* @param activation_function
*/
public
void
setActivationFunction
(
final
Activation
activation_function
)
{
public
final
void
setActivationFunction
(
final
Activation
activation_function
)
{
this
.
activation_function
=
activation_function
;
}
/**
* @param percent_test_train
*/
public
void
setPercentTestTrain
(
final
double
percent_test_train
)
{
public
final
void
setPercentTestTrain
(
final
double
percent_test_train
)
{
if
(
percent_test_train
<=
0
||
percent_test_train
>=
100
)
{
throw
new
IllegalArgumentException
(
"Percentage of train must be between 0 and 100"
);
...
...
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