-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add metric and loss modules for RMSE, RMSPE, and AUC #1214
Conversation
ludwig/modules/loss_modules.py
Outdated
|
||
|
||
def rmspe_loss(targets, predictions): | ||
if type(predictions) == dict and PREDICTIONS in predictions.keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove this, and just have the loss passing the right tensors and the metric passing the tensor associated with predictions key. This way this function is more atomic and reusable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@w4nderlust see commit
ludwig/features/numerical_feature.py
Outdated
elif self.loss[TYPE] == "root_mean_squared_percentage_error": | ||
self.metric_functions[LOSS] = RMSPEMetric(name="eval_loss") | ||
|
||
self.metric_functions[ERROR] = ErrorScore(name="metric_error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we can get rid of error, it's just not informative. can also get rid of ErrorScore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@w4nderlust see commit
This PR adds support for RMSE, RMSPE, and AUC.
Specifically it adds a metric and loss module for both RMSE and RMSPE and a metric module for AUC.