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

Classification with imbalance dataset #283

Open
leminhnhat007 opened this issue Jun 26, 2024 · 0 comments
Open

Classification with imbalance dataset #283

leminhnhat007 opened this issue Jun 26, 2024 · 0 comments

Comments

@leminhnhat007
Copy link

Hello,
I am trying to apply the classification of the KAN model to the imbalanced dataset. The initial idea was to define two functions: train_f1_score and test_f1_score to calculate the f1 score for the train and test output. Then apply metrics(train_f1_score, test_f1_score) instead of metrics=(train_acc, test_acc) for the KAN model. However, it KAN.py looks like the metrics are only used to append into the results but do not have any role in training the model:

    if metrics != None:
        for i in range(len(metrics)):
            results[metrics[i].__name__] = []

Is there any other way for KAN to deal with an imbalanced dataset?
Thank you

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