business-science / modeltime.gluonts

GluonTS Deep Learning with Modeltime
https://business-science.github.io/modeltime.gluonts/
Other
38 stars 11 forks source link

Feature Request: add framework to implement custom loss functions (example: nbeats_ensemble) #47

Open lg1000 opened 1 year ago

lg1000 commented 1 year ago

Hello Matt,

in order to achieve high accuracy, I want to implement my own loss functions. For example, as I have read in the original nbeats paper, there is a custom loss function already in use (OWA). However, in the nbeats documentation I am told to use either MAPE or MASE as loss metric. I do not like to rely on those metrics, for numerous reasons. There are several documentations on how to define a custom loss function in keras. This does not seem very challenging. Nevertheless, I do not know, how to make the loss function available to R via the reticulate interface. Is there a way to create a yardstick-like framework, in order to create custom metrics?