Skip to content

Multi Forecasting Features #572

Answered by raphaelsty
protti asked this question in Q&A
Apr 27, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @protti,

I'm not sure I fully understand what you are looking for. If you want to learn from several target variables, the multioutput.RegressorChain module is not compatible with SNARIMAX. But you can create two separate models and store them into a dict if you have two different target variables.

Regarding metrics, the module metrics.RegressionMultiOutput offers what you are looking for. The input parameters are dictionaries and not lists. :)

from river import metrics

metric = metrics.RegressionMultiOutput(metrics.MAE())

metric.update(
    y_pred = {"y_1": y_pred_1, "y_2": y_pred_2}, 
    y_true = {"y_1": y_1, "y_2": y_2}, 
)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@protti
Comment options

@raphaelsty
Comment options

@protti
Comment options

@raphaelsty
Comment options

Answer selected by MaxHalford
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