Skip to content
New issue

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

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

Already on GitHub? # to your account

Error in calculating LF(C(v)) #7

Open
brucetby opened this issue Jan 9, 2023 · 0 comments
Open

Error in calculating LF(C(v)) #7

brucetby opened this issue Jan 9, 2023 · 0 comments

Comments

@brucetby
Copy link

brucetby commented Jan 9, 2023

Hi guys,
I find an Error when calculating the label frequency of class C(v)
The code is in the src/util.py line 111
the original code is:
lf_train = (y_train.sum()-len(y_train))*y_train + len(y_train)
but i think it should be:
lf_train = (2 * y_train.sum()-len(y_train))*y_train + len(y_train) - y_train.sum()

is that right?

thank you!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant