Skip to content

Commit be2dbd2

Browse files
author
arnaudde
committed
Add repr to assertionMetrics
1 parent 62a47bd commit be2dbd2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

dataikuapi/dss/ml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,10 @@ class DSSMLAssertionMetric(object):
944944
def __init__(self, data):
945945
self._internal_dict = data
946946

947+
def __repr__(self):
948+
return u"DSSMLAssertionParams(\n name='{}',\n result={},\n valid_ratio={},\n nb_matching_rows={}," \
949+
u"\n nb_dropped_rows={}\n)".format(self.name, self.result, self.valid_ratio, self.nb_matching_rows,
950+
self.nb_dropped_rows)
947951
def get_raw(self):
948952
"""
949953
Gets the raw dictionary of metrics of one assertion

0 commit comments

Comments
 (0)