Skip to content

Commit 9bf086e

Browse files
committed
Add docstring to Range and RangeSettings
1 parent e3b27b1 commit 9bf086e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dataikuapi/dss/ml.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,10 @@ def _set_range(self, min=None, max=None, nb_values=None):
812812
self._algo_settings[self.name]["range"]["nbValues"] = nb_values
813813

814814
class RangeSettings(object):
815+
"""
816+
Class designed to represent the range of a numerical hyperparameter by pointing to the algorithm settings
817+
Should not be used directly by end users of the API
818+
"""
815819

816820
def __init__(self, numerical_hyperparameter_settings):
817821
self._numerical_hyperparameter_settings = numerical_hyperparameter_settings
@@ -890,6 +894,10 @@ def range(self):
890894

891895

892896
class Range(object):
897+
"""
898+
Class designed to represent the range of a numerical hyperparameter by storing its attributes (min, max, nb_values)
899+
End users should use this class to define explicitly the parameters of the range of a numerical hyperparameter
900+
"""
893901

894902
def _check_input(self, value):
895903
assert isinstance(value, (int, float)), "Invalid input type for Range: {}".format(type(value))

0 commit comments

Comments
 (0)