Replies: 3 comments
-
Yeah, so when you are using custom metrics, you should also use another parameter This is to help distinguish between metrics like Accuracy, which uses class prediction, and ROCAUC which uses probabilities. But I agree there is an issue because for regression this isn't valid, and even otherwise, a nicer error message should be there. I'll make some changes to this. For now, you can just use |
Beta Was this translation helpful? Give feedback.
-
fixed in #317 with the right assert statement |
Beta Was this translation helpful? Give feedback.
-
Thank your for the quick response and solution @manujosephv :D |
Beta Was this translation helpful? Give feedback.
-
Hi, I want to implement median absolute error as a loss function and as a metric to train FT-Transformer.
My code for median absolute error is as follows:
And the model definition is as follows:
But I'm getting this error:
I feel that the error is something simple to see but I can't find it, I would appreciate any help.
Regards.
Beta Was this translation helpful? Give feedback.
All reactions