Skip to content

Commit

Permalink
Merge pull request #994 from josiahjohnston/user-friendly-error-message
Browse files Browse the repository at this point in the history
More user friendly error message
  • Loading branch information
weixuanfu authored Jan 8, 2020
2 parents fc26b71 + cf26495 commit 410d88c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tpot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,10 +792,11 @@ def _update_top_pipeline(self):
if not self._optimized_pipeline:
raise RuntimeError('There was an error in the TPOT optimization '
'process. This could be because the data was '
'not formatted properly, or because data for '
'not formatted properly, because data for '
'a regression problem was provided to the '
'TPOTClassifier object. Please make sure you '
'passed the data to TPOT correctly.')
'TPOTClassifier object, or an error in a '
'custom scoring function. Please make sure '
'you passed the data to TPOT correctly.')
else:
pareto_front_wvalues = [pipeline_scores.wvalues[1] for pipeline_scores in self._pareto_front.keys]
if not self._last_optimized_pareto_front:
Expand Down

0 comments on commit 410d88c

Please sign in to comment.