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

Bug found #1

Closed
csJd opened this issue Oct 17, 2018 · 0 comments
Closed

Bug found #1

csJd opened this issue Oct 17, 2018 · 0 comments

Comments

@csJd
Copy link
Owner

csJd commented Oct 17, 2018

https://github.com/csJd/bdci_ei/blob/eee334380e55b5a900281f16b4fdec0898767066/term_weighting_model/classifiers.py#L71
Which should be following

        if true > 1 and pred > 1:
            continue
        if pred > 1:  # pred == 2 and true < 2, miss predicted
            fn += 1
        elif true == pred:  # correctly predicted
            tp += 1
        else:  # (true == 2 and pred < 2) or true != pred, wrongly predicted
            fp += 1
csJd added a commit that referenced this issue Oct 18, 2018
@csJd csJd closed this as completed Oct 24, 2018
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