Skip to content

Added methods for HSIC, HSIC-based CKA calculation, Euclidean Kernel Distance - #19

Open
xiongshujun wants to merge 4 commits into
ahwillia:mainfrom
neurostatslab:sxiong
Open

Added methods for HSIC, HSIC-based CKA calculation, Euclidean Kernel Distance#19
xiongshujun wants to merge 4 commits into
ahwillia:mainfrom
neurostatslab:sxiong

Conversation

@xiongshujun

Copy link
Copy Markdown

Created classes EKD + HSIC in the style of CKA in separate .py files, with both biased and unbiased scoring. Added HSIC-based CKA calculation in class LinearCKA.

Comment thread netrep/metrics/cka.py Outdated
X_at_Y = hsic.score(X, Y, mode = mode)
X_at_X = hsic.score(X, X, mode = mode)
Y_at_Y = hsic.score(Y, Y, mode = mode)
return X_at_Y/(X_at_X * Y_at_Y)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Should be a square root in the denominator right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, sorry!

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.

3 participants