I am new to python. I have this csv data with me
Now what I want to do that is I want to find a cost matrix which will be the cosine distance of the vectors and each vector will be corresponding to the ITRANS value. For example
AO = [1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 0 0 1 0]
AA = [1 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0 0 1 0 0 0 1 0 1]
and so on.
And what I am trying to do is that find a cosine similarity matrix between all the vectors
A0 AA ....
A0 [ X Y
AA [
[
Where X is the cosine distance between A0*A0 and Y is the cosine distance between A0 and AA. Can anyone guide how to write a python script for the same.