-
-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Description
Description
When using SMAC to optimize the runtime of an algorithm, the error report in runhistory.json does not report the raised exception, but an SMAC-internal error in TargetFunctionRunner, namely that the crash_cost attribute does not exist as
SMAC3/smac/runner/target_function_runner.py
Line 238 in 9d19475
| cost = self.crash_cost |
misses an underscore in comparison to
SMAC3/smac/runner/abstract_runner.py
Line 64 in 9d19475
| self._crash_cost = scenario.crash_cost |
Actual Results
Taken from runhistory.json:
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/envs/learning_History/lib/python3.10/site-packages/smac/runner/abstract_runner.py", line 110, in run_wrapper
status, cost, runtime, additional_info = self.run(
File "/home/ubuntu/miniconda3/envs/learning_History/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 238, in run
cost = self.crash_cost
AttributeError: 'TargetFunctionRunner' object has no attribute 'crash_cost'
Versions
2.2.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done