|
Hi there, I'd like to generate hyperplanes in a high dimensional space, but don't know how to achieve this. For example, I've got a matrix "M" with 10 row vectors of 32 dimensions, I'd like to generate a matrix of 3 hyperplanes and check for each vectors in "M" on which side of each hyperplane it lies. Is that possible ? Thanks for your help :) |
|
Just generate 3 random vectors of dimension 32 and then compute dot products and check the signs:
Thanks :) Naïve question : hyperplanes aren't n-1 dimensional ? If I'd like to quantize vectors of 2 distinct matrix with hyperplanes, should I use the same radom hyperplanes for each matrix or generate 2 random hyperplanes matrix ? (i'm kind of a newbee in this field) Regards
(Sep 14 '11 at 03:19)
Jay
1
Yes they are but each of them is fully parameterized by an orthogonal vector of dimension n called the normal vector. Those normal vectors are stored in the About your second question, it all depends on what you are trying to achieve. If you are trying to implement some sort of LSH using random projections as hashing functions then yes you should always reuse the same hashing functions on the new data you want ot hash if you want to compare it with previously hashed data.
(Sep 14 '11 at 04:00)
ogrisel
Excellent, that helps me a lot :) thx again
(Sep 14 '11 at 08:22)
Jay
|
|
Thanks :) Naïve question : hyperplanes aren't n-1 dimensional ? If I'd like to quantize vectors of 2 distinct matrix with hyperplanes, should I use the same radom hyperplanes for each matrix or generate 2 random hyperplanes matrix ? (i'm kind of a newbee in this field) Regards |
I ommit to say random hyperplanes ..