Skip to content

Commit

Permalink
use same metric for rct and rot
Browse files Browse the repository at this point in the history
  • Loading branch information
qbarthelemy committed Dec 7, 2023
1 parent 0d8a8e9 commit 28092d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def test_tlrotate_fit_transform(rndstate, metric, sample_weight):
sample_weight_ = None
sample_weight_ = check_weights(sample_weight_, len(y_enc))

rct = TLCenter(target_domain='target_domain')
X_rct = rct.fit_transform(X, y_enc, sample_weight_)
rct = TLCenter(target_domain='target_domain', metric=metric)
X_rct = rct.fit_transform(X, y_enc, sample_weight=sample_weight_)
rot = TLRotate(target_domain='target_domain', metric=metric)
X_rot = rot.fit_transform(X_rct, y_enc, sample_weight=sample_weight_)

Expand Down

0 comments on commit 28092d0

Please sign in to comment.