-
Notifications
You must be signed in to change notification settings - Fork 281
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
Define a new loss function in Keras (R environment) #451
Comments
Yes, in the same way. Let us know when you run into problems :-) |
Hi, thought I'd elaborate on this because of the The keras loss functions, even though some documents may indicate otherwise, should perform averaging not over the batch, but the feature dimension (that's why in Python code, it says In R, using the Also in the example I've added a way to test the custom loss function using Finally, as an additional check I'm having keras indicate the
|
Hi Sigrid, many thanks for your detailed descriptions and suggestions. It does work on my laptop. Thanks for your help again. |
Just curious, using this approach you would have to train a model for every quantile, thus having the potential danger of quantile crossing?! |
Dear all,
Recently, I noticed the quantile regression in Keras (Python), which applies a quantile regression loss function as bellow.
I wonder whether I can define this kind of loss function in R when using Keras?
Many thanks for your suggestions in advance.
Best regards,
Songchao
The text was updated successfully, but these errors were encountered: