skada
skada copied to clipboard
[WIP] Add CAN Method
Paper: https://arxiv.org/pdf/1901.00976 Mostly eq 3-4-5 + paragraph 3.4
New Features:
-
CAN and CANLoss Implementation:
- Added
CANLoss
class toskada/deep/_divergence.py
to implement the contrastive domain discrepancy (CDD) loss. - Added
CAN
function toskada/deep/_divergence.py
to implement the CAN domain adaptation method.
- Added
New Utilities:
-
SphericalKMeans:
- Added
SphericalKMeans
class toskada/deep/utils.py
for clustering using cosine similarity.
- Added
Testing:
-
New Tests for CAN:
- Added tests for CAN in
test_deep_divergence.py
to ensure the new method works as expected.
- Added tests for CAN in
Still needs to be done:
- Double check the implementation