Skip to content

Commit 852eb31

Browse files
author
arnaudde
committed
Clean up
1 parent 0a5d7c6 commit 852eb31

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

dataikuapi/dss/ml.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -776,9 +776,9 @@ def condition(self, condition):
776776

777777
class DSSMLAssertionCondition(object):
778778
"""
779-
Object that represents an assertion condition
780-
Do not create this object directly, use :meth:`dataikuapi.dss.ml.DSSMLAssertionParams.condition`, :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.from_expected_class(expected_valid_ratio, expected_class)`
781-
or :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.from_expected_range(expected_valid_ratio, expected_min, expected_max)` instead
779+
Object that represents an assertion condition
780+
Do not create this object directly, use :meth:`dataikuapi.dss.ml.DSSMLAssertionParams.condition`, :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.from_expected_class(expected_valid_ratio, expected_class)`
781+
or :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.from_expected_range(expected_valid_ratio, expected_min, expected_max)` instead
782782
"""
783783
def __init__(self, data):
784784
self._internal_dict = data
@@ -844,7 +844,7 @@ def expected_class(self, expected_class):
844844
def expected_valid_ratio(self):
845845
"""
846846
Returns the ratio of valid rows to exceed for the assertion to pass. A row is considered valid if the prediction
847-
is equal to the expected class for classification or in the expected range for regression
847+
is equal to the expected class for classification or in the expected range for regression.
848848
:rtype: str
849849
"""
850850
return self._internal_dict["successRatio"]
@@ -908,7 +908,7 @@ def get_metric(self, assertion_name):
908908
909909
:param str assertion_name: Name of the assertion
910910
911-
:returns: an object representing assertion metrics or None if if no assertion with that name exists
911+
:returns: an object representing assertion metrics or None if no assertion with that name exists
912912
:rtype: :class:`dataikuapi.dss.ml.DSSMLAssertionMetric`
913913
"""
914914
for assertion_metric_dict in self._internal_dict["perAssertion"]:

0 commit comments

Comments
 (0)