Skip to content

Custom loss function in AutoMLForecast.fit Hyperparameter tuning #430

Answered by jmoralez
ArnodeVries asked this question in Q&A
Discussion options

You must be logged in to vote

Hey. You can use MAE with the following:

from utilsforecast.losses import mae

def loss_fn(df, train_df):
    return mae(df, models=["model"])["model"].mean()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ArnodeVries
Comment options

Answer selected by ArnodeVries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants