Skip to content

Commit 1a540b2

Browse files
author
Yusuke Sugomori
committed
minor fix
1 parent 8c99aa9 commit 1a540b2

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Deep Learning (Python, C/C++)
1+
# Deep Learning (Python, C/C++, Java)
22

33
### Classes :
44

java/DBN/src/DBN.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ public class DBN {
66
public int[] hidden_layer_sizes;
77
public int n_outs;
88
public int n_layers;
9-
HiddenLayer[] sigmoid_layers;
10-
RBM[] rbm_layers;
11-
LogisticRegression log_layer;
12-
Random rng;
9+
public HiddenLayer[] sigmoid_layers;
10+
public RBM[] rbm_layers;
11+
public LogisticRegression log_layer;
12+
public Random rng;
1313

1414
public static double sigmoid(double x) {
1515
return 1.0 / (1.0 + Math.pow(Math.E, -x));

java/DBN/src/HiddenLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class HiddenLayer {
66
public int n_out;
77
public double[][] W;
88
public double[] b;
9-
Random rng;
9+
public Random rng;
1010

1111
public double uniform(double min, double max) {
1212
return rng.nextDouble() * (max - min) + min;

java/DBN/src/RBM.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class RBM {
77
double[][] W;
88
double[] hbias;
99
double[] vbias;
10-
Random rng;
10+
public Random rng;
1111

1212
public double uniform(double min, double max) {
1313
return rng.nextDouble() * (max - min) + min;

java/RBM/src/RBM.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class RBM {
77
double[][] W;
88
double[] hbias;
99
double[] vbias;
10-
Random rng;
10+
public Random rng;
1111

1212
public double uniform(double min, double max) {
1313
return rng.nextDouble() * (max - min) + min;

0 commit comments

Comments
 (0)