Skip to content

Commit 6604136

Browse files
author
arnaudde
committed
Rename create_from_* methods to from_*
1 parent 56ae941 commit 6604136

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

dataikuapi/dss/ml.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -716,13 +716,13 @@ class DSSMLAssertionParams(object):
716716
"""
717717
Object that represents parameters for one assertion
718718
Do not create this object directly, use :meth:`dataikuapi.dss.ml.DSSMLAssertionsParams.get_assertion(assertion_name)` or
719-
`create_from_parts(name, a_filter, condition)` instead
719+
`from_parts(name, a_filter, condition)` instead
720720
"""
721721
def __init__(self, data):
722722
self._internal_dict = data
723723

724724
@staticmethod
725-
def create_from_parts(name, a_filter, condition):
725+
def from_parts(name, a_filter, condition):
726726
"""
727727
Creates assertion parameters from name, filter and condition
728728
@@ -787,14 +787,14 @@ def condition(self, condition):
787787
class DSSMLAssertionCondition(object):
788788
"""
789789
Object that represents an assertion condition
790-
Do not create this object directly, use :meth:`dataikuapi.dss.ml.DSSMLAssertionParams.condition`, :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.create_from_expected_class(expected_valid_ratio, expected_class)`
791-
or :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.create_from_expected_range(expected_valid_ratio, expected_range)` instead
790+
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)`
791+
or :meth:`dataikuapi.dss.ml.DSSMLAssertionCondition.from_expected_range(expected_valid_ratio, expected_range)` instead
792792
"""
793793
def __init__(self, data):
794794
self._internal_dict = data
795795

796796
@staticmethod
797-
def create_from_expected_class(expected_valid_ratio, expected_class):
797+
def from_expected_class(expected_valid_ratio, expected_class):
798798
"""
799799
Creates an assertion condition from the expected valid ratio and class
800800
@@ -809,7 +809,7 @@ def create_from_expected_class(expected_valid_ratio, expected_class):
809809
return assertion_condition
810810

811811
@staticmethod
812-
def create_from_expected_range(expected_valid_ratio, expected_range):
812+
def from_expected_range(expected_valid_ratio, expected_range):
813813
"""
814814
Creates an assertion condition from an expected valid ratio and an expected range
815815

0 commit comments

Comments
 (0)