Finding the similarity between two objects, each with multiple features
I have a dataset structured like the below,
ID | a | b | c | d | e | f | g |
---|---|---|---|---|---|---|---|
c001 | 1 | 0 | 0 | 1 | 0 | 18 | 25 |
c002 | 0 | 1 | 1 | 1 | 0 | 44 | 98 |
c003 | 1 | 0 | 0 | 1 | 0 | 77 | 45 |
c004 | 0 | 1 | 1 | 0 | 1 | 39 | 67 |
c005 | 0 | 0 | 1 | 0 | 1 | 18 | 92 |
Now given a new object with same 7 features (a,b,c,d,e,f,g), I want to get a similarity score for each object in the dataset. What approaches can I use for this? I know this may be simple, but it would be great if a solution can be explained with a code. Thank in advance.
Topic python machine-learning
Category Data Science