Skip to content

Commit 1580773

Browse files
committed
Refactoring.
1 parent 8f70f53 commit 1580773

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/SimpleKNNClassifierTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ the algorithm must predict the label (which its positive or negative) for the po
6767
TestModel t3 = new TestModel(featureExtractor, Arrays.asList(4d, 1d));
6868
LabeledInstance<Model> pointC = new LabeledInstance<Model>(positiveLabel, t3);
6969

70-
TestModel t4 = new TestModel(featureExtractor, Arrays.asList(50d, 5d));
70+
TestModel t4 = new TestModel(featureExtractor, Arrays.asList(5d, 5d));
7171
LabeledInstance<Model> pointD = new LabeledInstance<Model>(positiveLabel, t4);
7272

7373
TestModel predictingTest = new TestModel(featureExtractor, Arrays.asList(1d, 3d));
@@ -78,7 +78,7 @@ the algorithm must predict the label (which its positive or negative) for the po
7878
Prediction predictedInstance = classifier.predict(pointE);
7979

8080
Truth.assertThat(predictedInstance.getLabel())
81-
.isEqualTo(positiveLabel);
81+
.isEqualTo(negativeLabel);
8282
}
8383

8484
}

0 commit comments

Comments
 (0)