Skip to content

Commit

Permalink
log=True
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiroiii committed May 30, 2023
1 parent c5cbe46 commit 86ff5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tune_classifier/discriminant_analysis_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def sample_params(self, trial: Optional[Trial] = None) -> Dict[str, Any]:
else:
params["shrinkage"] = trial.suggest_float(f"{self.__class__.__name__}_shrinkage", *self.shrinkage_space)

params["tol"] = trial.suggest_float(f"{self.__class__.__name__}_tol", *self.tol_space)
params["tol"] = trial.suggest_float(f"{self.__class__.__name__}_tol", *self.tol_space, log=True)

return params

Expand All @@ -46,7 +46,7 @@ def sample_params(self, trial: Optional[Trial] = None) -> Dict[str, Any]:

params = {}
params["reg_param"] = trial.suggest_float(f"{self.__class__.__name__}_reg_param", *self.reg_param_space)
params["tol"] = trial.suggest_float(f"{self.__class__.__name__}_tol", *self.tol_space)
params["tol"] = trial.suggest_float(f"{self.__class__.__name__}_tol", *self.tol_space, log=True)

return params

Expand Down

0 comments on commit 86ff5e9

Please sign in to comment.