Skip to content

Commit

Permalink
Clarification that reweighing algorithm only modifies the instance_we…
Browse files Browse the repository at this point in the history
…ights attribute (Trusted-AI#159)

* Clarified output of Reweighing algorithm's transform() method
  • Loading branch information
InterferencePattern authored Mar 11, 2020
1 parent 375c210 commit c5d88c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aif360/algorithms/preprocessing/reweighing.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def transform(self, dataset):
Args:
dataset (BinaryLabelDataset): Dataset that needs to be transformed.
Returns:
dataset (BinaryLabelDataset): Transformed dataset.
dataset (BinaryLabelDataset): Dataset with transformed
instance_weights attribute.
"""

dataset_transformed = dataset.copy(deepcopy=True)
Expand Down

0 comments on commit c5d88c9

Please sign in to comment.