Skip to content

Commit 4daf153

Browse files
committed
Rename NumericalHyperparameterSettings.Range to NumericalHyperparameterSettings.RangeSettings
1 parent 1407d99 commit 4daf153

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dataikuapi/dss/ml.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -811,43 +811,43 @@ def _set_range(self, min=None, max=None, nb_values=None):
811811
if nb_values is not None:
812812
self._algo_settings[self.name]["range"]["nbValues"] = nb_values
813813

814-
class Range(object):
814+
class RangeSettings(object):
815815

816816
def __init__(self, numerical_hyperparameter_settings):
817817
self._numerical_hyperparameter_settings = numerical_hyperparameter_settings
818818
self._range_dict = self._numerical_hyperparameter_settings._algo_settings[numerical_hyperparameter_settings.name]["range"]
819819

820820
def __repr__(self):
821-
return "NumericalHyperparameterSettings.Range(min={}, max={}, nb_values={})".format(self.min, self.max, self.nb_values)
821+
return "RangeSettings(min={}, max={}, nb_values={})".format(self.min, self.max, self.nb_values)
822822

823823
@property
824824
def min(self):
825825
"""
826-
:return: the lower bound of the Range for this hyperparameter
826+
:return: the lower bound of the range for this hyperparameter
827827
:rtype: float | int
828828
"""
829829
return self._range_dict["min"]
830830

831831
@min.setter
832832
def min(self, value):
833833
"""
834-
:param value: the lower bound of the Range this hyperparameter
834+
:param value: the lower bound of the range for this hyperparameter
835835
:type value: float | int
836836
"""
837837
self._numerical_hyperparameter_settings._set_range(min=value)
838838

839839
@property
840840
def max(self):
841841
"""
842-
:return: the upper bound of the Range this hyperparameter
842+
:return: the upper bound of the range for this hyperparameter
843843
:rtype: float | int
844844
"""
845845
return self._range_dict["max"]
846846

847847
@max.setter
848848
def max(self, value):
849849
"""
850-
:param value: the upper bound of the Range for this hyperparameter
850+
:param value: the upper bound of the range for this hyperparameter
851851
:type value: float | int
852852
"""
853853
self._numerical_hyperparameter_settings._set_range(max=value)
@@ -871,12 +871,12 @@ def nb_values(self, value):
871871
def set_range(self, min=None, max=None, nb_values=None):
872872
"""
873873
Sets both:
874-
- the Range parameters to search over for the current numerical hyperparameter
874+
- the range parameters to search over for the current numerical hyperparameter
875875
- the definition mode of the current numerical hyperparameter to "RANGE"
876876
877-
:param min: the lower bound of the Range for this hyperparameter
877+
:param min: the lower bound of the range for this hyperparameter
878878
:type min: float | int
879-
:param max: the upper bound of the Range for this hyperparameter
879+
:param max: the upper bound of the range for this hyperparameter
880880
:type max: float | int
881881
:param nb_values: for grid-search ("GRID" strategy) only, the number of values between min and max to consider
882882
:type nb_values: int
@@ -886,7 +886,7 @@ def set_range(self, min=None, max=None, nb_values=None):
886886

887887
@property
888888
def range(self):
889-
return NumericalHyperparameterSettings.Range(self)
889+
return NumericalHyperparameterSettings.RangeSettings(self)
890890

891891

892892
class Range(object):

0 commit comments

Comments
 (0)