Skip to content

Adds scores for topic distributions#3

Open
RiaAggarwal wants to merge 2 commits intoblei-lab:masterfrom
RiaAggarwal:add-scores
Open

Adds scores for topic distributions#3
RiaAggarwal wants to merge 2 commits intoblei-lab:masterfrom
RiaAggarwal:add-scores

Conversation

@RiaAggarwal
Copy link
Copy Markdown

The scores are essential for determining the near best fits of various topics in the SLDA. Please advise if another technique needs to be employed or if this looks good.

Comment thread slda.cpp Outdated
{
score += eta[i][k] * phi_m[k];
}
fprintf(inf_score_file, "%5.5f ", score);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest also adding doc id for the easy output understanding.
indent is not correct.

Comment thread slda.cpp Outdated
if (label == doc->label)
num_correct ++;

fprintf(inf_score_file, "\n");
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent is not correct.

@RiaAggarwal
Copy link
Copy Markdown
Author

Added doc_id and corrected the indent

@RiaAggarwal
Copy link
Copy Markdown
Author

@chongw can you review my latest commit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants