|
5 | 5 | from ..utils import DataikuStreamedHttpUTF8CSVReader |
6 | 6 | import json, warnings |
7 | 7 | import time |
8 | | -import pprint |
9 | 8 | from .metrics import ComputedMetrics |
10 | 9 | from .utils import DSSDatasetSelectionBuilder, DSSFilterBuilder |
11 | 10 | from .future import DSSFuture |
@@ -720,8 +719,8 @@ def __init__(self, data): |
720 | 719 | self._internal_dict = data |
721 | 720 |
|
722 | 721 | def __repr__(self): |
723 | | - return u"DSSMLAssertionParams(\n name= '{name}',\n condition= {condition},\n filter= {filter}\n)".format( |
724 | | - name=self.name, filter=pprint.pformat(self.filter).replace('\n', '\n '), condition=self.condition) |
| 722 | + return u"DSSMLAssertionParams(name= '{name}', condition= {condition}, filter= {filter})".format( |
| 723 | + name=self.name, filter=self.filter, condition=self.condition) |
725 | 724 |
|
726 | 725 | @staticmethod |
727 | 726 | def from_params(name, a_filter, condition): |
@@ -963,8 +962,8 @@ def __init__(self, data): |
963 | 962 | self._internal_dict = data |
964 | 963 |
|
965 | 964 | def __repr__(self): |
966 | | - return u"DSSMLAssertionParams(\n name='{}',\n result={},\n valid_ratio={},\n nb_matching_rows={}," \ |
967 | | - u"\n nb_dropped_rows={}\n)".format(self.name, self.result, self.valid_ratio, self.nb_matching_rows, |
| 965 | + return u"DSSMLAssertionParams(name='{}', result={}, valid_ratio={}, nb_matching_rows={}," \ |
| 966 | + u" nb_dropped_rows={})".format(self.name, self.result, self.valid_ratio, self.nb_matching_rows, |
968 | 967 | self.nb_dropped_rows) |
969 | 968 | def get_raw(self): |
970 | 969 | """ |
|
0 commit comments