Skip to content

Commit

Permalink
added accuracy test
Browse files Browse the repository at this point in the history
  • Loading branch information
shavkunov committed Feb 27, 2019
1 parent cd6e40d commit 823d053
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

import static com.spbsu.flamestream.example.bl.classifier.PredictorStreamTest.parseDoubles;
import static java.util.stream.Collectors.toList;
import static org.testng.Assert.assertTrue;

public class LentaTest extends FlameAkkaSuite {
private static final Logger LOGGER = LoggerFactory.getLogger(LentaTest.class);
Expand Down Expand Up @@ -179,7 +180,9 @@ public void partialFitTest() {
//LOGGER.info("\n");
}

LOGGER.info("Accuracy: {}", truePositives / testsize);
double accuracy = truePositives / testsize;
LOGGER.info("Accuracy: {}", accuracy);
assertTrue(accuracy >= 0.62);
}

@Test
Expand Down

0 comments on commit 823d053

Please # to comment.