Skip to content

Avoid ZeroDivisionError in CKACalculator.hsic1#4

Open
hrrbay wants to merge 3 commits intonumpee:mainfrom
hrrbay:main
Open

Avoid ZeroDivisionError in CKACalculator.hsic1#4
hrrbay wants to merge 3 commits intonumpee:mainfrom
hrrbay:main

Conversation

@hrrbay
Copy link

@hrrbay hrrbay commented Mar 20, 2026

CKACalculator.hsic1 function will divide by zero for any batch with less than 4 samples.

This PR throws a new error instead and skips such batches in CKACalculator.calculate_cka_matrix.

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.

1 participant