From 1ce78f3e23d415debdff055cbf8d3b8a18ac8c93 Mon Sep 17 00:00:00 2001 From: dengdifan Date: Thu, 7 Nov 2024 17:32:45 +0100 Subject: [PATCH] fix some typos --- package/samplers/smac_sampler/sampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/samplers/smac_sampler/sampler.py b/package/samplers/smac_sampler/sampler.py index e09e21f4..2c1c4c05 100644 --- a/package/samplers/smac_sampler/sampler.py +++ b/package/samplers/smac_sampler/sampler.py @@ -222,7 +222,7 @@ def _transform_step_hp_to_integer( ) return n_discrete_values, (distribution.low, distribution.step) # type: ignore - def _step_hp_to_intger( + def _step_hp_to_integer( self, hp_value: float | int, scale_info: tuple[int | float, int | float] ) -> int: return int(np.round((hp_value - scale_info[0]) / scale_info[1]))