0
$\begingroup$

I want to make cosine similarity a distance measure for undersampling of fraud data , but the problem is if I get the zero values it will give 0/0, what can I do for this what can be the alternative similarity measures that are also distance measures.

$\endgroup$
0
$\begingroup$

What about the following?

$dist = 1 - sim$ where $sim$ denotes the cosine similarity.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.