Skip to content

Commit

Permalink
Clean up graceful failure error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiever authored Aug 29, 2016
1 parent c0ae397 commit 589a020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tpot/tpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ def pareto_eq(ind1, ind2):
if pipeline_scores.wvalues[1] > top_score:
self._optimized_pipeline = pipeline
if self._optimized_pipeline is None:
raise ValueError(('No pipeline has been optimized. '
'This could be because the data was not formatted properly,'
'Or because data for a regression problem was provided to the TPOT classifier pipelines. '
'Please check your data first.'))
raise ValueError(('There was an error in the TPOT optimization process. '
'This could be because the data was not formatted properly, '
'or because data for a regression problem was provided to the TPOTClassifier object. '
'Please make sure you passed the data to TPOT correctly.'))
else:
self._fitted_pipeline = self._toolbox.compile(expr=self._optimized_pipeline)
with warnings.catch_warnings():
Expand Down

0 comments on commit 589a020

Please sign in to comment.