|
5 | 5 | from ..utils import DataikuStreamedHttpUTF8CSVReader |
6 | 6 | import json, warnings |
7 | 7 | import time |
| 8 | +import pprint |
8 | 9 | from .metrics import ComputedMetrics |
9 | 10 | from .utils import DSSDatasetSelectionBuilder, DSSFilterBuilder |
10 | 11 | from .future import DSSFuture |
@@ -711,6 +712,10 @@ class DSSMLAssertionParams(object): |
711 | 712 | def __init__(self, data): |
712 | 713 | self._internal_dict = data |
713 | 714 |
|
| 715 | + def __repr__(self): |
| 716 | + return u"DSSMLAssertionParams(\n name= '{name}',\n condition= {condition},\n filter= {filter}\n)".format( |
| 717 | + name=self.name, filter=pprint.pformat(self.filter).replace('\n', '\n '), condition=self.condition) |
| 718 | + |
714 | 719 | @staticmethod |
715 | 720 | def from_params(name, a_filter, condition): |
716 | 721 | """ |
@@ -783,6 +788,12 @@ class DSSMLAssertionCondition(object): |
783 | 788 | def __init__(self, data): |
784 | 789 | self._internal_dict = data |
785 | 790 |
|
| 791 | + def __repr__(self): |
| 792 | + return u"DSSMLAssertionCondition(expected_valid_ratio = {}, expected_class= {}," \ |
| 793 | + u" expected_min={}, expected_max={})".format( |
| 794 | + self.expected_valid_ratio, self.expected_class, self.expected_min, self.expected_max) |
| 795 | + |
| 796 | + |
786 | 797 | @staticmethod |
787 | 798 | def from_expected_class(expected_valid_ratio, expected_class): |
788 | 799 | """ |
|
0 commit comments