Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discrepancy from the paper #3

Open
YipingNUS opened this issue Nov 1, 2018 · 0 comments
Open

Discrepancy from the paper #3

YipingNUS opened this issue Nov 1, 2018 · 0 comments

Comments

@YipingNUS
Copy link

Hi,
the eta calculation in LoadDocs.java seems to differ from the description in the paper. Specifically, in the code you assign identical eta only when sum==0. This makes the eta value of the categories whose seed word doesn't appear to be zero.

if (sum == 0) {

Below is the direct translation from the paper to replace ln 95-102.

        float sumSmooth = smooth * model.numCategories;
        for (int i = 0; i < raw.length; i++)
            raw[i] = (raw[i] + smooth) / (sum + sumSmooth);

        model.eta[index] = raw;
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

No branches or pull requests

1 participant