{"action":"created","issue":{"url":"https://api.github.com/repos/Polochon-street/bliss/issues/12","labels_url":"https://api.github.com/repos/Polochon-street/bliss/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Polochon-street/bliss/issues/12/comments","events_url":"https://api.github.com/repos/Polochon-street/bliss/issues/12/events","html_url":"https://github.com/Polochon-street/bliss/issues/12","id":119389093,"number":12,"title":"cosine_similarity producing similar result values?","user":{"login":"fossfreedom","id":996240,"avatar_url":"https://avatars.githubusercontent.com/u/996240?v=3","gravatar_id":"","url":"https://api.github.com/users/fossfreedom","html_url":"https://github.com/fossfreedom","followers_url":"https://api.github.com/users/fossfreedom/followers","following_url":"https://api.github.com/users/fossfreedom/following{/other_user}","gists_url":"https://api.github.com/users/fossfreedom/gists{/gist_id}","starred_url":"https://api.github.com/users/fossfreedom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossfreedom/subscriptions","organizations_url":"https://api.github.com/users/fossfreedom/orgs","repos_url":"https://api.github.com/users/fossfreedom/repos","events_url":"https://api.github.com/users/fossfreedom/events{/privacy}","received_events_url":"https://api.github.com/users/fossfreedom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-29T21:19:49Z","updated_at":"2015-11-29T23:06:20Z","closed_at":null,"body":"Hi,\r\n\r\n  just running some tests - I'm using (python) cosine_similarity between two bl_song's - one is a latin track - the other is a reggae track\r\n\r\nsong3 = bl_song(\"/home/dad/Music/UB40 - The Very Best of UB40 1980-2000/14 - UB40 - Tell Me Is It True.ogg\")\r\nsong = bl_song(\"/home/dad/Music/Various - Latin Fever (Disc 2)/01 - Enrique Iglesias - Bailamos (Groove Brothers Radio Edit).ogg\")\r\n\r\nprint (distance.cosine_similarity(song3, song)[\"similarity\"])\r\n0.9550393223762512\r\n\r\nSo how should I interpret that result - are they similar?\r\n\r\n>>> print (song[\"force_vector\"])\r\n{'amplitude': 5.691754341125488, 'tempo': 5.7260565757751465, 'frequency': 6.2037200927734375, 'attack': -6.0}\r\n>>> print (song3[\"force_vector\"])\r\n{'amplitude': 5.661318778991699, 'tempo': 5.719758987426758, 'frequency': 2.5806758403778076, 'attack': -6.0}\r\n"},"comment":{"url":"https://api.github.com/repos/Polochon-street/bliss/issues/comments/160479899","html_url":"https://github.com/Polochon-street/bliss/issues/12#issuecomment-160479899","issue_url":"https://api.github.com/repos/Polochon-street/bliss/issues/12","id":160479899,"user":{"login":"Polochon-street","id":9823290,"avatar_url":"https://avatars.githubusercontent.com/u/9823290?v=3","gravatar_id":"","url":"https://api.github.com/users/Polochon-street","html_url":"https://github.com/Polochon-street","followers_url":"https://api.github.com/users/Polochon-street/followers","following_url":"https://api.github.com/users/Polochon-street/following{/other_user}","gists_url":"https://api.github.com/users/Polochon-street/gists{/gist_id}","starred_url":"https://api.github.com/users/Polochon-street/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polochon-street/subscriptions","organizations_url":"https://api.github.com/users/Polochon-street/orgs","repos_url":"https://api.github.com/users/Polochon-street/repos","events_url":"https://api.github.com/users/Polochon-street/events{/privacy}","received_events_url":"https://api.github.com/users/Polochon-street/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T23:06:20Z","updated_at":"2015-11-29T23:06:20Z","body":"I have the same result for Tell me its True.\r\n\r\nThe two real trustworthy values are « amplitude » and « frequency » - tempo results are discrete, and attack results need more work :/ .\r\n\r\nI must say that yes, your similarity result is anormaly high - but I think all you can do is wait until I enhanced the attack and tempo treatments.\r\n\r\nHowever, if you test the ballad against a metal track, it should give convincing results :p"}}