Skip to content
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

01_getting_started_complete #1240

Closed
kgboyko opened this issue Jan 2, 2025 · 1 comment
Closed

01_getting_started_complete #1240

kgboyko opened this issue Jan 2, 2025 · 1 comment

Comments

@kgboyko
Copy link

kgboyko commented Jan 2, 2025

Description

Description

Block:
from datasetsforecast.losses import mse, mae, rmse
from datasetsforecast.evaluation import accuracy

evaluation_df = accuracy(cv_df, [mse, mae, rmse], agg_by=['unique_id'])
evaluation_df['best_model'] = evaluation_df.drop(columns=['metric', 'unique_id']).idxmin(axis=1)
evaluation_df.head()

The following line could have been inserted here:
from neuralforecast.losses.pytorch import MSE, MAE, RMSE, Accuracy

But then there is a problem with the Accuracy class, it doesn't have a similar method.


ModuleNotFoundError Traceback (most recent call last)
Cell In[55], line 1
----> 1 from datasetsforecast.losses import mse, mae, rmse
2 from datasetsforecast.evaluation import accuracy
4 evaluation_df = accuracy(cv_df, [mse, mae, rmse], agg_by=['unique_id'])

ModuleNotFoundError: No module named 'datasetsforecast.losses'

Link

No response

Link

No response

@kgboyko kgboyko closed this as completed Jan 2, 2025
@kgboyko kgboyko reopened this Jan 2, 2025
@jmoralez
Copy link
Member

jmoralez commented Jan 2, 2025

Fixed by 2.0 release

@jmoralez jmoralez closed this as completed Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants