Skip to content

Commit 7861196

Browse files
committed
minor bug fix
1 parent 38f3c9b commit 7861196

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

java/LogisticRegression/src/LogisticRegression.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private static void test_lr() {
109109
{0, 0, 1, 1, 1, 0}
110110
};
111111

112-
double[][] test_Y = new double[test_N][n_in];
112+
double[][] test_Y = new double[test_N][n_out];
113113

114114

115115
// test

scala/LogisticRegression.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ object LogisticRegression {
113113
Array(0, 0, 1, 1, 1, 0)
114114
)
115115

116-
val test_Y: Array[Array[Double]] = Array.ofDim[Double](test_N, n_in)
116+
val test_Y: Array[Array[Double]] = Array.ofDim[Double](test_N, n_out)
117117

118118
// test
119119
var j: Int = 0

0 commit comments

Comments
 (0)