mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-06-08 15:05:13 +02:00
Indication when fitting failed
Signed-off-by: abigailt <abigailt@il.ibm.com>
This commit is contained in:
parent
8c1a186ef7
commit
f602806133
1 changed files with 2 additions and 0 deletions
|
|
@ -396,6 +396,8 @@ class GeneralizeToRepresentative(BaseEstimator, MetaEstimatorMixin, TransformerM
|
|||
x_test_dataset = ArrayDataset(x_test, features_names=self._features)
|
||||
self._ncp_scores.fit_score = self.calculate_ncp(x_test_dataset)
|
||||
self._ncp_scores.generalizations_score = self.calculate_ncp(x_test_dataset)
|
||||
else:
|
||||
print('No fitting was performed as some information was missing')
|
||||
|
||||
# Return the transformer
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue