From 589a020adff6a725584cb283849e09bb2c37b8b2 Mon Sep 17 00:00:00 2001 From: Randy Olson Date: Mon, 29 Aug 2016 11:42:07 -0400 Subject: [PATCH] Clean up graceful failure error message --- tpot/tpot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tpot/tpot.py b/tpot/tpot.py index f7b12d64..28dda914 100644 --- a/tpot/tpot.py +++ b/tpot/tpot.py @@ -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():