From bf5604930c9da6b104ced4643903ab7689ef10dc Mon Sep 17 00:00:00 2001 From: gatl Date: Tue, 12 Dec 2023 17:00:27 +0000 Subject: [PATCH] Improve error message Unfortunately there is no fine granularity when an error occurs. That makes it more relevant to list as many possibilities for the causes as possible. In this patch, one additional cause is added to the ones already presented (no optimization done due to timeout from max_eval_time_mins). --- tpot/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tpot/base.py b/tpot/base.py index 676038f8..a47da52a 100644 --- a/tpot/base.py +++ b/tpot/base.py @@ -935,7 +935,8 @@ def _update_top_pipeline(self): 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 a timeout " + "was reached or because data for " "a regression problem was provided to the " "TPOTClassifier object. Please make sure you " "passed the data to TPOT correctly. If you "