@@ -672,7 +672,7 @@ def get_assertion(self, assertion_name):
672672 Gets a :class:`dataikuapi.dss.ml.DSSMLAssertionParams` representing the parameters of the assertion with the
673673 provided name (or None if no assertion has that name)
674674 :param str assertion_name: Name of the assertion
675- :rtype: :class:`dataikuapi.dss.ml.DSSMLAssertionParams` or None
675+ :rtype: :class:`dataikuapi.dss.ml.DSSMLAssertionParams` or None if no assertion has that name
676676 """
677677 for assertion_dict in self ._internal_dict ["assertions" ]:
678678 if assertion_dict ["name" ] == assertion_name :
@@ -682,7 +682,6 @@ def get_assertion(self, assertion_name):
682682 def add_assertion (self , assertion_params ):
683683 """
684684 Adds parameters of an assertion to the assertions parameters of the ml task.
685- Raises a ValueError if an assertion with the same name already exists
686685 :param object assertion_params: A :class:`~dataikuapi.dss.utils.DSSMLAssertionParams` representing parameters of the assertion
687686 """
688687 if not isinstance (assertion_params , DSSMLAssertionParams ):
@@ -692,7 +691,7 @@ def add_assertion(self, assertion_params):
692691
693692 def delete_assertion (self , assertion_name ):
694693 """
695- Deletes the assertion parameters of the assertion with the provided name from the `dataikuapi.dss.ml.DSSMLAssertionsParams`
694+ Deletes the assertion parameters of the assertion with the provided name from the assertions parameters of the ml task.
696695 Raises a ValueError if no assertion with the provided name was found
697696 :param str assertion_name: Name of the assertion
698697 """
@@ -845,7 +844,7 @@ def expected_class(self, expected_class):
845844 def expected_valid_ratio (self ):
846845 """
847846 Returns the ratio of valid rows to exceed for the assertion to pass. A row is considered valid if the prediction
848- 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
849848 :rtype: str
850849 """
851850 return self ._internal_dict ["successRatio" ]
@@ -952,7 +951,7 @@ def name(self):
952951 @property
953952 def result (self ):
954953 """
955- Returns whether the assertion pass
954+ Returns whether the assertion passes
956955 :rtype: bool
957956 """
958957 return self ._internal_dict ["result" ]
0 commit comments