machine learning - Impact of Padding on the Similarity of two vectors -


say have 2 document vectors, x1 , x2. padded these 0 vectors have maximum document length contraint. impact similrity between 2 vectors? or in general how helping us?

i can answer first part. not affect similarity between vectors. usually, in document handling, 1 use cosine distance between vectors. adding zeros, cosine distance not changed. increasing dimensionality adding zeros. exmaple, in 2 dimensional space [1, 2] , [3, 4] 2 points. in 3 dimensions, same points represented [1, 2, 0] , [3, 4, 0]. though dimension increased points remain same.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -