Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Sugomori committed Mar 16, 2013
1 parent 8c99aa9 commit 1a540b2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Deep Learning (Python, C/C++)
# Deep Learning (Python, C/C++, Java)

### Classes :

Expand Down
8 changes: 4 additions & 4 deletions java/DBN/src/DBN.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ public class DBN {
public int[] hidden_layer_sizes;
public int n_outs;
public int n_layers;
HiddenLayer[] sigmoid_layers;
RBM[] rbm_layers;
LogisticRegression log_layer;
Random rng;
public HiddenLayer[] sigmoid_layers;
public RBM[] rbm_layers;
public LogisticRegression log_layer;
public Random rng;

public static double sigmoid(double x) {
return 1.0 / (1.0 + Math.pow(Math.E, -x));
Expand Down
2 changes: 1 addition & 1 deletion java/DBN/src/HiddenLayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class HiddenLayer {
public int n_out;
public double[][] W;
public double[] b;
Random rng;
public Random rng;

public double uniform(double min, double max) {
return rng.nextDouble() * (max - min) + min;
Expand Down
2 changes: 1 addition & 1 deletion java/DBN/src/RBM.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class RBM {
double[][] W;
double[] hbias;
double[] vbias;
Random rng;
public Random rng;

public double uniform(double min, double max) {
return rng.nextDouble() * (max - min) + min;
Expand Down
2 changes: 1 addition & 1 deletion java/RBM/src/RBM.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class RBM {
double[][] W;
double[] hbias;
double[] vbias;
Random rng;
public Random rng;

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

0 comments on commit 1a540b2

Please sign in to comment.