Skip to content

Commit 37a8390

Browse files
committed
Debug tests failed on jenkins
1 parent d4c70fa commit 37a8390

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

h2o-core/src/main/java/hex/AUUC.java

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import water.fvec.Frame;
1111
import water.fvec.Vec;
1212
import water.util.ArrayUtils;
13+
import water.util.Log;
1314

1415
import java.util.Arrays;
1516
import java.util.Iterator;
@@ -148,12 +149,15 @@ public AUUC(AUUCBuilder bldr, boolean trueProbabilities, AUUCType auucType) {
148149
}
149150

150151
public void setUplift(){
151-
for(int i=0; i<AUUCType.VALUES.length; i++) {
152+
for(int i=0; i < AUUCType.VALUES.length; i++) {
153+
Log.info("Set uplift");
152154
for (int j = 0; j < _nBins; j++) {
153-
_uplift[i][j] = AUUCType.VALUES[i].exec(this, j);
155+
double value = AUUCType.VALUES[i].exec(this, j);
156+
_uplift[i][j] = value;
157+
Log.info("Uplift value "+ value);
154158
}
155159
}
156-
for(int i=0; i<AUUCType.VALUES.length; i++) {
160+
for(int i=0; i < AUUCType.VALUES.length; i++) {
157161
if (_uplift[i].length == 1 && Double.isNaN(_uplift[i][0])) {
158162
_uplift[i][0] = 0;
159163
} else {

h2o-core/src/main/java/water/util/ArrayUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ public static double[] uniformDistFromArray(double[][] array, long seed) {
22482248
*/
22492249
public static void interpolateLinear(double[] array){
22502250
assert array.length > 0 && !Double.isNaN(array[array.length-1]):
2251-
"Input array length should be > 0 and the first item should not be NaN";
2251+
"Input array length should be > 0 and the last item should not be NaN";
22522252
if (array.length == 1){
22532253
return;
22542254
}

0 commit comments

Comments
 (0)