Skip to content

Commit 225cbea

Browse files
authored
Update LinearRegressionTest.java with method name
1 parent b2bc05c commit 225cbea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/machinelearning/LinearRegressionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void testLinearRegression() {
3131
assertEquals(1.0, lr.getC(), 0.001);
3232

3333
// Check prediction for X = 6
34-
double predictedY = lr.PredictForX(6.0);
34+
double predictedY = lr.predictForX(6.0);
3535
assertEquals(7.0, predictedY, 0.001);
3636
}
3737
}

0 commit comments

Comments
 (0)