Skip to content

Commit

Permalink
Fix serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
maurever committed Dec 4, 2024
1 parent 592c985 commit edb8570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion h2o-algos/src/main/java/hex/knn/KNNKey.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package hex.knn;

import water.Iced;

import java.util.Objects;

/**
Expand All @@ -8,7 +10,7 @@
* @param <K> String of Integer
* @param <V> Double or class extends Double
*/
public class KNNKey<K extends Comparable<K>, V extends Double> implements Comparable<KNNKey<K, V>>{
public class KNNKey<K extends Comparable<K>, V extends Double> extends Iced<KNNKey> implements Comparable<KNNKey<K, V>> {

K key;
V value;
Expand Down
1 change: 0 additions & 1 deletion h2o-algos/src/test/java/hex/knn/KNNDistanceTaskTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public void testIrisCosine(){
Scope.track(fr);
String idColumn = "id";
String response = "class";
int frRows = (int) fr.numRows();
fr.add(idColumn, createIdVec(fr.numRows(), Vec.T_NUM));
Scope.track(fr);
int k = 3;
Expand Down

0 comments on commit edb8570

Please sign in to comment.