Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] Fix dissimilarities computations of Deep CAN #274

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

antoinecollas
Copy link
Collaborator

@antoinecollas antoinecollas commented Nov 4, 2024

There a bug when n_samples == n_centroids: the dissimilarity is a matrix of size (n_samples, n_samples) instead of being a vector (n_samples, ).

This PR solves this issue by creating two different functions _compute_dissimilarity_loss and _compute_dissimilarity_matrix.

@antoinecollas antoinecollas changed the title [WIP] Fix dissimilarities computations of Deep CAN [TO_REVIEW] Fix dissimilarities computations of Deep CAN Nov 4, 2024
Copy link
Collaborator

@YanisLalou YanisLalou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YanisLalou YanisLalou changed the title [TO_REVIEW] Fix dissimilarities computations of Deep CAN [MRG] Fix dissimilarities computations of Deep CAN Nov 5, 2024
@YanisLalou YanisLalou merged commit 4e7af50 into scikit-adaptation:main Nov 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants