Hi,

I was wondering if there is a simple way to sparsify a vector in Mahout.  I
basically have an n-dimensional vector (currently a DenseVector) and I want
to develop a method that sparsifies it by keeping only the largest s values
of the vector and setting the rest to 0.  Is there a simple solution to
this given all that is included in the Vector class or do I need to create
my own method?

Chirag

-- 

*Chirag Lakhani*

Data Scientist

Zaloni, Inc. | www.zaloni.com

633 Davis Dr., Suite 200

Durham, NC 27713
e: [email protected]
p: 919.602.4965 x7020

Reply via email to