Skip to content

Commit e9d71a5

Browse files
authored
Merge pull request #1271 from automl/1270-remove-sphinx-import-in-intensifier
Remove import of unsupported Error
2 parents 52a5d70 + 5628abb commit e9d71a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

smac/intensifier/intensifier.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import numpy as np
99
from ConfigSpace import Configuration
10-
from sphinx.writers.latex import UnsupportedError
1110

1211
from smac.intensifier.abstract_intensifier import AbstractIntensifier
1312
from smac.runhistory import TrialInfo
@@ -446,7 +445,7 @@ def _get_adaptivecapping_budget(
446445
normalize=False,
447446
)
448447
if isinstance(inc_sum_cost_unchecked, list):
449-
raise UnsupportedError(
448+
raise TypeError(
450449
"Incumbent sum cost should be a single value and not a list, as adaptive capping is not "
451450
"supported for scenarios with multiple objectives."
452451
)
@@ -501,7 +500,7 @@ def _get_adaptivecapping_budget(
501500
average_instance_cost = np.array(costs).mean()
502501
inc_sum_cost += average_instance_cost
503502
else:
504-
raise UnsupportedError()
503+
raise TypeError()
505504

506505
# compute the already used runtime for the challenger across instances
507506
chal_sum_cost = self.runhistory.sum_cost(

0 commit comments

Comments
 (0)