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

[BUG] TypeError: __deepcopy__() takes 1 positional argument but 2 were given when using darts.models.forecasting.regression_ensemble_model.RegressionEnsembleModel #724

Closed
omerfguzel opened this issue Jan 6, 2022 · 3 comments
Labels
bug Something isn't working triage Issue waiting for triaging

Comments

@omerfguzel
Copy link

Describe the bug
I'm trying to use Ensemble model but I got this error. Any suggestions?

System:

  • Python version: 3.7
  • darts version 0.15.0

Additional context
full error line: TypeError: deepcopy() takes 1 positional argument but 2 were given

@omerfguzel omerfguzel added bug Something isn't working triage Issue waiting for triaging labels Jan 6, 2022
@dennisbader
Copy link
Collaborator

Hi, could you please send a code snippet so we can reproduce the issue? Thanks.

@omerfguzel
Copy link
Author

Solved and here is how it is solved:
h3ik0th/Darts_ensembleFC#1 (comment)

@dennisbader
Copy link
Collaborator

When creating a model object all parameters are saved.
Deepcopying fitted/trained forecasting_models with EnsembleModels fails.

You can reset your models with models_untrained = [m.untrained_model() for m in models]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Issue waiting for triaging
Projects
None yet
Development

No branches or pull requests

2 participants