EpistasisLab / tpot

A Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.
http://epistasislab.github.io/tpot/
GNU Lesser General Public License v3.0
9.57k stars 1.55k forks source link

Improve error message #1338

Closed gatl closed 4 months ago

gatl commented 6 months ago

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).

What does this PR do?

Presents one additional cause to the exception that the user may get. It took me some time to understand the error and this may save other people from this work.

Where should the reviewer start?

Review the change to the message.

How should this PR be tested?

No testing needed, just validate the change to the test.

Any background context you want to provide?

It took me many hours of work to figure out why this RuntimeError was being raised. Hopefully, others in the same situation can diagnose their situation in less time.

What are the relevant issues?

No relevant issues that I am aware of.

Screenshots (if appropriate)

It is not.

Questions: