I have a list of floats that I want to compare to other lists and get the similarity ratio in python :
The list that I want to compare:
[0.0000,0.0003,-0.0001,0.0002, 0.0001,0.0003,0.0000,0.0000, -0.0002,0.0002,-0.0002,0.0002, 0.0000,0.0000,-0.0002,0.0000, 0.0000,0.0000,-0.0002,-0.0001]
One of the other lists:
[0.0000,0.0002,0.0000,0.0001, 0.0003,0.0005,0.0000,0.0000, 0.0001,0.0003,-0.0001,0.0002, 0.0002,0.0003,-0.0001,0.0002, 0.0002,0.0005,-0.0010,0.0000]
I tried converting them to strings and using fuzzywyzzy library, python-Levenshtein and difflib to compare the strings and get a ratio, but this does not give me the results that I want and they are very slow. I searched and can't find anything about this.
What is the best way to compare 2 lists of floats ?
I am asking to know whether there is a native way to compare float lists for similarity or a library that does the job, like the many examples of string comparison.