Skip to content
Snippets Groups Projects
Commit 4c275cc8 authored by a.croix's avatar a.croix
Browse files

Solve checkstyle issues and SpotBugs issues

parent b2d62b05
No related branches found
No related tags found
1 merge request!4Neural network
Pipeline #2265 passed
......@@ -47,14 +47,14 @@ public class HyperParameters {
final OptimizationAlgorithm algorithm,
final Activation activation_function) {
this(neurons_number, learning_rate, algorithm,
activation_function, (Double) null);
activation_function, 100);
}
/**
* Getter for neuron_number.
* @return
*/
public int getNeuronsNumber() {
public final int getNeuronsNumber() {
return neurons_number;
}
......@@ -62,7 +62,7 @@ public class HyperParameters {
* Getter for learning rate.
* @return
*/
public double getLearningRate() {
public final double getLearningRate() {
return learning_rate;
}
......@@ -70,7 +70,7 @@ public class HyperParameters {
* Getter for backpropagation algorithm.
* @return
*/
public OptimizationAlgorithm getAlgorithm() {
public final OptimizationAlgorithm getAlgorithm() {
return algorithm;
}
......@@ -78,7 +78,7 @@ public class HyperParameters {
* Getter for activation function.
* @return
*/
public Activation getActivationFunction() {
public final Activation getActivationFunction() {
return activation_function;
}
......@@ -86,7 +86,7 @@ public class HyperParameters {
* Getter for percent_test_train.
* @return
*/
public double getPercentTestTrain() {
public final double getPercentTestTrain() {
return percent_test_train;
}
}
......@@ -21,7 +21,7 @@ public final class MainDL4J {
*/
public static void main(final String[] args) {
String file_name = args[0];
//String file_name = args[0];
double learning_rate = Double.parseDouble(args[1]);
OptimizationAlgorithm optimization_algorithm;
Activation activation_function;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment