tag:blogger.com,1999:blog-7994087232040033267.post591077723904441853..comments2021-01-16T05:37:05.035-08:00Comments on Pragmatic Programming Techniques: Measuring similarity and distance functionRicky Hohttp://www.blogger.com/profile/03793674536997651667noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7994087232040033267.post-77565483789550564232012-08-11T22:13:17.041-07:002012-08-11T22:13:17.041-07:00Yes, cosine is a similarity rather than distance. ...Yes, cosine is a similarity rather than distance. Here I use similarity and distance very loosely but in reality they are reverse of each other.<br /><br />When we mix multiple measures, we will weight them with alpha1, alpha2, alpha3 ... where each of them is positive and sum to 1. So alpha and (1 - alpha) are just a special case when I have two measures to mix.Ricky Hohttps://www.blogger.com/profile/03793674536997651667noreply@blogger.comtag:blogger.com,1999:blog-7994087232040033267.post-80408453825070694802012-08-10T08:30:15.140-07:002012-08-10T08:30:15.140-07:00Isn't cosine a similarity? And when mixing num...Isn't cosine a similarity? And when mixing numeric and categorical, what is alpha (and 1-alpha)?Jeffhttps://www.blogger.com/profile/17017204540630564477noreply@blogger.comtag:blogger.com,1999:blog-7994087232040033267.post-9308750300392645922012-08-09T21:09:16.414-07:002012-08-09T21:09:16.414-07:00Thanks for the correction. I will fix itThanks for the correction. I will fix itRicky Hohttps://www.blogger.com/profile/03793674536997651667noreply@blogger.comtag:blogger.com,1999:blog-7994087232040033267.post-84990447850972909472012-08-09T13:25:06.063-07:002012-08-09T13:25:06.063-07:00Your notation for the minkowski difference was sem...Your notation for the minkowski difference was semi-confusing to me for a moment there due to the fact you were using x and y along with mentioning the euclidean distance function, yet when one plugs in 2 the result is:<br />((x1 - y1)^2 + (x2 - y2)^2)^1/2 vs<br />((x1 - x2)^2 + (y1 - y2)^2)^1/2<br /><br />I've got to sign off now, but these are my thoughts ~1/2 way through.Anonymoushttps://www.blogger.com/profile/17420437559696169508noreply@blogger.com