Support Vector Machine with Cross-Validation

An example of optimizing a simple support vector machine on the IRIS dataset. We use the hyperparameter optimization facade, which uses a random forest as its surrogate model. It is able to scale to higher evaluation budgets and a higher number of dimensions. Also, you can use mixed data types as well as conditional hyperparameters.

[INFO][abstract_initial_design.py:147] Using 5 initial design configurations and 0 additional configurations.
/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py:57: DeprecationWarning: `Configuration` act's like a dictionary. Please use `dict(config)` instead of `get_dictionary` if you explicitly need a `dict`
  config_dict = config.get_dictionary()
[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[INFO][abstract_intensifier.py:515] Added config 4ba1ca as new incumbent because there are no incumbents yet.
[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/numpy/lib/function_base.py:4655: RuntimeWarning: invalid value encountered in subtract
  diff_b_a = subtract(b, a)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py:57: DeprecationWarning: `Configuration` act's like a dictionary. Please use `dict(config)` instead of `get_dictionary` if you explicitly need a `dict`
  config_dict = config.get_dictionary()
[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/numpy/lib/function_base.py:4655: RuntimeWarning: invalid value encountered in subtract
  diff_b_a = subtract(b, a)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/model/random_forest/random_forest.py:220: RuntimeWarning: Mean of empty slice
  preds_as_array = np.log(np.nanmean(np.exp(preds_as_array), axis=2) + VERY_SMALL_NUMBER)
/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py:57: DeprecationWarning: `Configuration` act's like a dictionary. Please use `dict(config)` instead of `get_dictionary` if you explicitly need a `dict`
  config_dict = config.get_dictionary()
[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[WARNING][abstract_runner.py:132] Target function returned infinity or nothing at all. Result is treated as CRASHED and cost is set to inf.
[WARNING][abstract_runner.py:138] Traceback: Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 184, in run
    rval = self(config_copy, target_function, kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/smac/runner/target_function_runner.py", line 257, in __call__
    return algorithm(config, **algorithm_kwargs)
  File "/home/runner/work/SMAC3/SMAC3/examples/1_basics/2_svm_cv.py", line 58, in train
    if "gamma" in config:
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 151, in __contains__
    return item in self
  [Previous line repeated 970 more times]
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ConfigSpace/configuration.py", line 148, in __contains__
    if not isinstance(item, str):
RecursionError: maximum recursion depth exceeded while calling a Python object


[INFO][smbo.py:319] Finished 50 trials.
[INFO][smbo.py:327] Configuration budget is exhausted:
[INFO][smbo.py:328] --- Remaining wallclock time: inf
[INFO][smbo.py:329] --- Remaining cpu time: inf
[INFO][smbo.py:330] --- Remaining trials: 0
Default cost: inf
Incumbent cost: inf

import numpy as np
from ConfigSpace import Categorical, Configuration, ConfigurationSpace, Float, Integer
from ConfigSpace.conditions import InCondition
from sklearn import datasets, svm
from sklearn.model_selection import cross_val_score

from smac import HyperparameterOptimizationFacade, Scenario

__copyright__ = "Copyright 2021, AutoML.org Freiburg-Hannover"
__license__ = "3-clause BSD"


# We load the iris-dataset (a widely used benchmark)
iris = datasets.load_iris()


class SVM:
    @property
    def configspace(self) -> ConfigurationSpace:
        # Build Configuration Space which defines all parameters and their ranges
        cs = ConfigurationSpace(seed=0)

        # First we create our hyperparameters
        kernel = Categorical("kernel", ["linear", "poly", "rbf", "sigmoid"], default="poly")
        C = Float("C", (0.001, 1000.0), default=1.0, log=True)
        shrinking = Categorical("shrinking", [True, False], default=True)
        degree = Integer("degree", (1, 5), default=3)
        coef = Float("coef0", (0.0, 10.0), default=0.0)
        gamma = Categorical("gamma", ["auto", "value"], default="auto")
        gamma_value = Float("gamma_value", (0.0001, 8.0), default=1.0, log=True)

        # Then we create dependencies
        use_degree = InCondition(child=degree, parent=kernel, values=["poly"])
        use_coef = InCondition(child=coef, parent=kernel, values=["poly", "sigmoid"])
        use_gamma = InCondition(child=gamma, parent=kernel, values=["rbf", "poly", "sigmoid"])
        use_gamma_value = InCondition(child=gamma_value, parent=gamma, values=["value"])

        # Add hyperparameters and conditions to our configspace
        cs.add_hyperparameters([kernel, C, shrinking, degree, coef, gamma, gamma_value])
        cs.add_conditions([use_degree, use_coef, use_gamma, use_gamma_value])

        return cs

    def train(self, config: Configuration, seed: int = 0) -> float:
        """Creates a SVM based on a configuration and evaluates it on the
        iris-dataset using cross-validation."""
        config_dict = config.get_dictionary()
        if "gamma" in config:
            config_dict["gamma"] = config_dict["gamma_value"] if config_dict["gamma"] == "value" else "auto"
            config_dict.pop("gamma_value", None)

        classifier = svm.SVC(**config_dict, random_state=seed)
        scores = cross_val_score(classifier, iris.data, iris.target, cv=5)
        cost = 1 - np.mean(scores)

        return cost


if __name__ == "__main__":
    classifier = SVM()

    # Next, we create an object, holding general information about the run
    scenario = Scenario(
        classifier.configspace,
        n_trials=50,  # We want to run max 50 trials (combination of config and seed)
    )

    # We want to run the facade's default initial design, but we want to change the number
    # of initial configs to 5.
    initial_design = HyperparameterOptimizationFacade.get_initial_design(scenario, n_configs=5)

    # Now we use SMAC to find the best hyperparameters
    smac = HyperparameterOptimizationFacade(
        scenario,
        classifier.train,
        initial_design=initial_design,
        overwrite=True,  # If the run exists, we overwrite it; alternatively, we can continue from last state
    )

    incumbent = smac.optimize()

    # Get cost of default configuration
    default_cost = smac.validate(classifier.configspace.get_default_configuration())
    print(f"Default cost: {default_cost}")

    # Let's calculate the cost of the incumbent
    incumbent_cost = smac.validate(incumbent)
    print(f"Incumbent cost: {incumbent_cost}")

Total running time of the script: (0 minutes 0.787 seconds)