Skip to content

Commit

Permalink
Merge branch 'master' into test-speedups
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed May 11, 2024
2 parents b5d4981 + 529f334 commit 8b77ecb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions neps/search_spaces/hyperparameters/numerical.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ def _get_truncnorm_prior_and_std(self) -> tuple[TruncNorm, float]:
confidence_score=self.default_confidence_score,
)

std = (high - low) * self.default_confidence_score
a, b = (low - default) / std, (high - default) / std
return scipy.stats.truncnorm(a, b), float(std)

def to_integer(self) -> IntegerParameter:
"""Convert the numerical hyperparameter to an integer hyperparameter."""
from neps.search_spaces.hyperparameters.integer import IntegerParameter
Expand Down

0 comments on commit 8b77ecb

Please sign in to comment.