RistoAle97/centered-kernel-alignment

CKA (Centered Kernel Alignment) implemented in PyTorch

40
/ 100
Emerging

This tool helps machine learning engineers and researchers understand how similar the internal workings of different neural networks are. It takes the layer outputs (representations) from two neural networks and calculates a similarity score, known as Centered Kernel Alignment (CKA). This allows you to compare models and see if they are learning similar features, even if their architectures differ or they are trained on different data.

Use this if you need to quantitatively compare how different neural network models or different layers within a model represent data.

Not ideal if you need a widely supported, production-ready tool for model interpretability, as this project is primarily for personal and academic use and may not work for every model.

neural-networks model-comparison representation-learning deep-learning-research machine-learning-engineering
No Package No Dependents
Maintenance 10 / 25
Adoption 8 / 25
Maturity 16 / 25
Community 6 / 25

How are scores calculated?

Stars

64

Forks

3

Language

Python

License

MIT

Last pushed

Feb 23, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/RistoAle97/centered-kernel-alignment"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.