pytorch-forecasting icon indicating copy to clipboard operation
pytorch-forecasting copied to clipboard

How to find the RMSE and MAE from raw predictions ?

Open Mohan16071996 opened this issue 1 year ago • 2 comments

Code is :

raw_prediction = best_tft.predict(
    training.filter(lambda x: (x.Ticker == "AAPL") ),
    mode="raw",
    return_x=True,
)

Here I get raw predictions, after getting this , i want to find RMSE and MAE.

Or is there a way to predict for each ticker in this code: Below code is for overall RMSE I believe

predictions = best_tft.predict(val_dataloader, return_y=True, trainer_kwargs=dict(accelerator="cpu"))
RMSE()(predictions.output, predictions.y)

Mohan16071996 avatar Jun 02 '24 14:06 Mohan16071996

Can someone please respond to this as soon as possible?

Mohan16071996 avatar Jun 02 '24 14:06 Mohan16071996

Try this function here

anhphan2705 avatar Jul 31 '24 07:07 anhphan2705