8000 Error in calculating LF(C(v)) · Issue #7 · PonderLY/PC-GNN · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error in calculating LF(C(v)) #7
Open
@brucetby

Description

@brucetby

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0