Skip to content

Commit f2a1886

Browse files
author
arnaudde
committed
Nitpicks
1 parent 018bed2 commit f2a1886

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

dataikuapi/dss/ml.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def __repr__(self):
657657
class DSSMLAssertionsParams(object):
658658
"""
659659
Object that represents parameters for all assertions of a ml task
660-
Do not create this object directly, use :meth:`DSSPredictionMLTaskSettings.get_assertions_params()` instead
660+
Do not create this object directly, use :meth:`DSSPredictionMLTaskSettings.get_assertions_params` instead
661661
"""
662662

663663
def __init__(self, data):
@@ -724,8 +724,8 @@ def delete_assertion(self, assertion_name):
724724
class DSSMLAssertionParams(object):
725725
"""
726726
Object that represents parameters for one assertion
727-
Do not create this object directly, use :meth:`DSSMLAssertionsParams.get_assertion(assertion_name)` or
728-
`from_params(name, a_filter, condition)` instead
727+
Do not create this object directly, use :meth:`DSSMLAssertionsParams.get_assertion` or
728+
`from_params` instead
729729
"""
730730
def __init__(self, data):
731731
self._internal_dict = data
@@ -804,16 +804,15 @@ def condition(self, condition):
804804
class DSSMLAssertionCondition(object):
805805
"""
806806
Object that represents an assertion condition
807-
Do not create this object directly, use :meth:`DSSMLAssertionParams.condition`, :meth:`DSSMLAssertionCondition.from_expected_class(expected_valid_ratio, expected_class)`
808-
or :meth:`DSSMLAssertionCondition.from_expected_range(expected_valid_ratio, expected_min, expected_max)` instead
807+
Do not create this object directly, use :meth:`DSSMLAssertionParams.condition`,
808+
:meth:`DSSMLAssertionCondition.from_expected_class` or :meth:`DSSMLAssertionCondition.from_expected_range` instead
809809
"""
810810
def __init__(self, data):
811811
self._internal_dict = data
812812

813813
def __repr__(self):
814814
return u"{}({})".format(self.__class__.__name__, self.get_raw())
815815

816-
817816
@staticmethod
818817
def from_expected_class(expected_valid_ratio, expected_class):
819818
"""
@@ -925,7 +924,7 @@ def expected_max(self, expected_max):
925924
class DSSMLAssertionsMetrics(object):
926925
"""
927926
Object that represents the assertions metrics for all assertions on a trained model
928-
Do not create this object directly, use :meth:`DSSTrainedPredictionModelDetails.get_assertions_metrics()` instead
927+
Do not create this object directly, use :meth:`DSSTrainedPredictionModelDetails.get_assertions_metrics` instead
929928
"""
930929
def __init__(self, data):
931930
self._internal_dict = data
@@ -969,7 +968,7 @@ def passing_assertions_ratio(self):
969968
class DSSMLAssertionMetrics(object):
970969
"""
971970
Object that represents the result of an assertion on a trained model
972-
Do not create this object directly, use :meth:`DSSMLAssertionMetrics.get_metrics(self, assertion_name)` instead
971+
Do not create this object directly, use :meth:`DSSMLAssertionMetrics.get_metrics` instead
973972
"""
974973
def __init__(self, data):
975974
self._internal_dict = data

0 commit comments

Comments
 (0)