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

TPOT will, on occasion, randomly fail #181

Closed
ardunn opened this issue Feb 5, 2019 · 0 comments
Closed

TPOT will, on occasion, randomly fail #181

ardunn opened this issue Feb 5, 2019 · 0 comments

Comments

@ardunn
Copy link
Contributor

ardunn commented Feb 5, 2019

For example:

Traceback (most recent call last):
  File "/global/scratch/ardunn/python/lib/python3.7/site-packages/fireworks/core/rocket.py", line 262, in run
    m_action = t.run_task(my_spec)
  File "/global/scratch/ardunn/codes/hmprivate/hmprivate/automatminer/benchmarking/tasks.py", line 107, in run_task
    results = pipe.benchmark(df, target, kfold, fold_subset=[fold])
  File "/global/scratch/ardunn/codes/automatminer/automatminer/utils/package_tools.py", line 76, in wrapper
    result = func(*args, **kwargs)
  File "/global/scratch/ardunn/codes/automatminer/automatminer/pipeline.py", line 234, in benchmark
    self.fit(train, target)
  File "/global/scratch/ardunn/codes/automatminer/automatminer/utils/package_tools.py", line 76, in wrapper
    result = func(*args, **kwargs)
  File "/global/scratch/ardunn/codes/automatminer/automatminer/pipeline.py", line 137, in fit
    self.learner.fit(df, target)
  File "/global/scratch/ardunn/codes/automatminer/automatminer/utils/package_tools.py", line 76, in wrapper
    result = func(*args, **kwargs)
  File "/global/scratch/ardunn/codes/automatminer/automatminer/automl/adaptors.py", line 125, in fit
    self._backend = self._backend.fit(X, y, **fit_kwargs)
  File "/global/scratch/ardunn/python/lib/python3.7/site-packages/tpot/base.py", line 693, in fit
    raise e
  File "/global/scratch/ardunn/python/lib/python3.7/site-packages/tpot/base.py", line 684, in fit
    self._update_top_pipeline()
  File "/global/scratch/ardunn/python/lib/python3.7/site-packages/tpot/base.py", line 758, in _update_top_pipeline
    raise RuntimeError('A pipeline has not yet been optimized. Please call fit() first.')
RuntimeError: A pipeline has not yet been optimized. Please call fit() first.

This happens infrequently enough for it to not be code-breaking, but frequently enough for it to be annyoing.

@ardunn ardunn closed this as completed Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant