Skip to content

Commit

Permalink
Perplexity: ignore tokens that do not belong to the model (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrei committed Apr 11, 2018
1 parent dce6589 commit 1112ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/artm_tests/master_model_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void testReshapeTokens(bool with_ptdw, bool opt_for_avx) {
}
auto fit_offline_args = api.Initialize(batches, nullptr, nullptr, &small_dict);

float expected[] = { 17.0148f, 15.3353f, 14.6942f, 14.3854f };
float expected[] = { 14.3481f, 11.7418f, 10.8133f, 10.3792f };
for (int pass = 0; pass < 4; pass++) {
master_model.FitOfflineModel(fit_offline_args);
artm::PerplexityScore perplexity_score = master_model.GetScoreAs< ::artm::PerplexityScore>(get_score_args);
Expand Down

0 comments on commit 1112ff4

Please sign in to comment.