Skip to content

Commit

Permalink
Debug tests failed on jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
maurever committed May 22, 2024
1 parent d4c70fa commit 0ad8aed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions h2o-core/src/main/java/hex/AUUC.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import water.fvec.Frame;
import water.fvec.Vec;
import water.util.ArrayUtils;
import water.util.Log;

import java.util.Arrays;
import java.util.Iterator;
Expand Down Expand Up @@ -148,12 +149,15 @@ public AUUC(AUUCBuilder bldr, boolean trueProbabilities, AUUCType auucType) {
}

public void setUplift(){
for(int i=0; i<AUUCType.VALUES.length; i++) {
for(int i=0; i < AUUCType.VALUES.length; i++) {
Log.info("Set uplift");
for (int j = 0; j < _nBins; j++) {
_uplift[i][j] = AUUCType.VALUES[i].exec(this, j);
double value = AUUCType.VALUES[i].exec(this, j);
_uplift[i][j] = value;
Log.info("Uplift value "+ value);
}
}
for(int i=0; i<AUUCType.VALUES.length; i++) {
for(int i=0; i < AUUCType.VALUES.length; i++) {
if (_uplift[i].length == 1 && Double.isNaN(_uplift[i][0])) {
_uplift[i][0] = 0;
} else {
Expand Down
2 changes: 1 addition & 1 deletion h2o-core/src/main/java/water/util/ArrayUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2248,7 +2248,7 @@ public static double[] uniformDistFromArray(double[][] array, long seed) {
*/
public static void interpolateLinear(double[] array){
assert array.length > 0 && !Double.isNaN(array[array.length-1]):
"Input array length should be > 0 and the first item should not be NaN";
"Input array length should be > 0 and the last item should not be NaN";
if (array.length == 1){
return;
}
Expand Down

0 comments on commit 0ad8aed

Please sign in to comment.