junxnone / aiwiki

AI Wiki
https://junxnone.github.io/aiwiki
17 stars 2 forks source link

ML Metrics Pairwise #139

Open junxnone opened 2 years ago

junxnone commented 2 years ago

Reference

Brief

Pairwise Metrics Formula Description
Cosine similarity $k(x, y) = \frac{x y^\top}{|x| |y|}$
Linear kernel $k(x, y) = x^\top y$
Polynomial kernel $k(x, y) = x^\top y$
Sigmoid kernel $k(x, y) = (\gamma x^\top y +c_0)^d$
RBF kernel $k(x, y) = \exp( -\gamma | x-y |^2)$
Laplacian kernel $k(x, y) = \exp( -\gamma | x-y |_1)$
Chi-squared kernel $k(x, y) = \exp \left (-\gamma \sum_i \frac{(x[i] - y[i]) ^ 2}{x[i] + y[i]} \right )$