Skip to content

Commit c655c56

Browse files
author
arnaudde
committed
Unify reprs
1 parent 339cbc9 commit c655c56

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

dataikuapi/dss/ml.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,7 @@ def __init__(self, data):
731731
self._internal_dict = data
732732

733733
def __repr__(self):
734-
return u"DSSMLAssertionParams(name= '{name}', condition= {condition}, filter= {filter})".format(
735-
name=self.name, filter=self.filter, condition=self.condition)
734+
return u"{}({})".format(self.__class__.__name__, self.get_raw())
736735

737736
@staticmethod
738737
def from_params(name, a_filter, condition):
@@ -812,9 +811,7 @@ def __init__(self, data):
812811
self._internal_dict = data
813812

814813
def __repr__(self):
815-
return u"DSSMLAssertionCondition(expected_valid_ratio = {}, expected_class= {}," \
816-
u" expected_min={}, expected_max={})".format(
817-
self.expected_valid_ratio, self.expected_class, self.expected_min, self.expected_max)
814+
return u"{}({})".format(self.__class__.__name__, self.get_raw())
818815

819816

820817
@staticmethod

0 commit comments

Comments
 (0)