We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826c68d commit 8fddc5dCopy full SHA for 8fddc5d
autoPyTorch/api/base_task.py
@@ -1254,7 +1254,8 @@ def get_incumbent_results(
1254
Returns:
1255
1256
"""
1257
- if self.run_history is not None or self.run_history.empty():
+ assert self.run_history is not None, "No Run History found, search has not been called."
1258
+ if self.run_history.empty():
1259
raise ValueError("Run History is empty. Something went wrong, "
1260
"smac was not able to fit any model?")
1261
0 commit comments