Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Discrepancy from the paper #3

@YipingNUS

Description

@YipingNUS

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions