Skip to content

[Question]: Missing arguments class_weight and sample_weight in model.fit() #1177

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

Open
FrancescoRusticali opened this issue Sep 20, 2023 · 1 comment
Labels
missing feature/s An issue about missing features in the library.

Comments

@FrancescoRusticali
Copy link

Description

Hi all,
I noticed that the method model.fit() is missing arguments class_weight and sample_weight (coming from the corresponding Python function), that are used for weighting the loss function, usually to deal with imbalanced datasets.
Is there a reason for that?
Any workaround to apply similar weights (the class weights in particular)?

Thank you very much!

Alternatives

No response

@Wanglongzhi2001 Wanglongzhi2001 added the missing feature/s An issue about missing features in the library. label Sep 21, 2023
@Wanglongzhi2001
Copy link
Collaborator

Hello, the implementation of class_weight and sample_weight has completed in #1187 #1189
Please let me know if there still exist some problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing feature/s An issue about missing features in the library.
Projects
None yet
Development

No branches or pull requests

2 participants