-
Notifications
You must be signed in to change notification settings - Fork 132
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
Sample weights #244
Comments
I think you can multiply weight to the loss. |
both regression and classification tasks, with use mean_squared_error and sigmoid_cross_entropy loss functions. |
I suppose metrics do not participate in backward pass, so i have to modify loss functions |
Yes. You need to modify functions to to set specific weights to each output in multi-output tasks. I'm planning to implement |
Weighted loss function is an easy part. Seems like sending only two arguments to loss function is hard-coded inside models/prediction/regressor.py and classifier.py, and also in
This works fine, but i do not fully understand lines 91-109 (regressor.py), so i'm curious if it is right way instead of calling If we insert weights into dataset like this:
then |
Hello,
is there a designed way to train models with weighted samples? especially to set specific weights to each output in multi-output tasks.
Thanks
The text was updated successfully, but these errors were encountered: