File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- # Deep Learning (Python, C/C++)
1
+ # Deep Learning (Python, C/C++, Java )
2
2
3
3
### Classes :
4
4
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ public class DBN {
6
6
public int [] hidden_layer_sizes ;
7
7
public int n_outs ;
8
8
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 ;
13
13
14
14
public static double sigmoid (double x ) {
15
15
return 1.0 / (1.0 + Math .pow (Math .E , -x ));
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ public class HiddenLayer {
6
6
public int n_out ;
7
7
public double [][] W ;
8
8
public double [] b ;
9
- Random rng ;
9
+ public Random rng ;
10
10
11
11
public double uniform (double min , double max ) {
12
12
return rng .nextDouble () * (max - min ) + min ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public class RBM {
7
7
double [][] W ;
8
8
double [] hbias ;
9
9
double [] vbias ;
10
- Random rng ;
10
+ public Random rng ;
11
11
12
12
public double uniform (double min , double max ) {
13
13
return rng .nextDouble () * (max - min ) + min ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public class RBM {
7
7
double [][] W ;
8
8
double [] hbias ;
9
9
double [] vbias ;
10
- Random rng ;
10
+ public Random rng ;
11
11
12
12
public double uniform (double min , double max ) {
13
13
return rng .nextDouble () * (max - min ) + min ;
You can’t perform that action at this time.
0 commit comments