Skip to content

Commit

Permalink
Update hyperit.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EdoardoChidichimo committed Jun 24, 2024
1 parent 55a1be4 commit 4ffee66
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions hyperit/hyperit.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,21 +440,11 @@ def __which_estimator(self, measure: str) -> None:
self._estimator_name, calculator, properties, initialise_parameter = set_estimator(self._estimator, measure, self._params) # from utils.py function

if calculator:
self._CalcClass = calculator
self._Calc = calculator()

if properties:
for key, value in properties.items():
if key == "k_HISTORY":
self._Calc.setProperty(self._CalcClass.K_PROP_NAME, value)
elif key == "k_TAU":
self._Calc.setProperty(self._CalcClass.K_TAU_PROP_NAME, value)
elif key == "l_HISTORY":
self._Calc.setProperty(self._CalcClass.L_PROP_NAME, value)
elif key == "l_TAU":
self._Calc.setProperty(self._CalcClass.L_TAU_PROP_NAME, value)
else:
self._Calc.setProperty(key, value)
self._Calc.setProperty(key, value)

if initialise_parameter:
self._initialise_parameter = initialise_parameter
Expand Down

0 comments on commit 4ffee66

Please sign in to comment.