Skip to content

Commit

Permalink
more centroids added to test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikit-srivastava committed Oct 10, 2018
1 parent 827dde6 commit c35541a
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ public void testNbmTime() throws IOException {
long totTime = 0;
LOG.info("Starting InMemory Theta Model test!");
Word2VecModel nbm = Word2VecFactory.getNormalBinModel();
float[][] centroids = { TestConst.CENT1, TestConst.CENT2, TestConst.CENT3, TestConst.CENT4, TestConst.CENT5 };
float[][] centroids = { TestConst.CENT1, TestConst.CENT2, TestConst.CENT3, TestConst.CENT4, TestConst.CENT5,
TestConst.CENT6, TestConst.CENT7, TestConst.CENT8, TestConst.CENT9, TestConst.CENT10, TestConst.CENT11,
TestConst.CENT12, TestConst.CENT13, TestConst.CENT14, TestConst.CENT15, TestConst.CENT16,
TestConst.CENT17, TestConst.CENT18, TestConst.CENT19, TestConst.CENT20 };
LOG.info("Starting BruteForce-Model Test");
List<String> correctWords = NrmlzdMdlPrfmncTester.getCorrectWords(centroids, nbm);
LOG.info("Correct Words are :" + correctWords);
Expand All @@ -74,8 +77,7 @@ public void testNbmTime() throws IOException {
totTime += diff;
LOG.info("Query time recorded for Centroid " + (i + 1) + " is " + diff + " milliseconds.");
}
LOG.info(
"Average query time for W2VNrmlMemModelKMeans is : " + (totTime / centroids.length) + " milliseconds");
LOG.info("Average query time for W2VNrmlMemModelKMeans is : " + (totTime / centroids.length) + " milliseconds");
LOG.info("Predicted Words are :" + lrModelWords);
float percVal = NrmlzdMdlPrfmncTester.calcPercScore(correctWords, lrModelWords);
LOG.info("Score for Test is : " + percVal + "%");
Expand Down

0 comments on commit c35541a

Please sign in to comment.