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

[timeseries] Fix info and fit_summary for TimeSeriesPredictor #2510

Merged
merged 2 commits into from
Dec 6, 2022

Conversation

shchur
Copy link
Collaborator

@shchur shchur commented Dec 5, 2022

Issue #, if available: #2497 and #2498

Description of changes:

  • Change the implementation of AbstractTimeSeriesModel.get_info() and TimeSeriesPredictor.fit_summary().
  • Add tests covering these functions.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@shchur shchur added bug Something isn't working module: timeseries related to the timeseries module labels Dec 5, 2022
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

Job PR-2510-f0e538e is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-2510/f0e538e/index.html

@shchur shchur requested a review from Innixma December 5, 2022 14:22
@@ -735,6 +735,7 @@ def fit_ensemble(
)

self._add_model(model=simple_ensemble, base_models=simple_ensemble.model_names)
self.save_model(model=simple_ensemble)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was happening before this change?

Copy link
Collaborator Author

@shchur shchur Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WeightedEnsemble model is saved inside the model graph (i.e., as an attribute of the trainer saved to trainer.pkl). This means that we could predict with the ensemble after loading the predictor from disk.

The new line self.save_model(model=simple_ensemble) saves the metadata of the model (val_score, fit_time, etc.) to disk so that it can be retrieved when calling info(). Without this change the line https://github.com/autogluon/autogluon/blob/master/timeseries/src/autogluon/timeseries/trainer/abstract_trainer.py#L217 fails.

@shchur shchur merged commit 12f1a8a into autogluon:master Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: timeseries related to the timeseries module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants