Comments

You must log in or register to comment.

TKMater OP t1_j7vayeo wrote

I have classified some data points as anomaly in timeseries data and calculated feature importance vectors for them. Now I want to calculate similarity between two anomalous data points based on their feature importance vector.

0

Jucuco t1_j7vsc6p wrote

Inner product between metrics tells you the projection of one onto the other. Whatever the space you're building reperesents

0

lonelyrascal t1_j7vwf3f wrote

Well it also depends on whether you have sparse vectors or not... Some metrics work best for sparse vectors and other work for dense vectors. Check out scikit learn's pairwise distances metrics to understand better

2

BrohammerOK t1_j7x21pg wrote

If you care as you said about both magnitude and direction, try with L2 (Euclidean distance) , not cosine similarity.

2