Hello,

I'm comparing the efficiency of sq_dist() from mahout to sq_dist()  from
gpml library that is based on bsxfun in octave/matlab.

It seems that computing the distance matrix in octave is 5 times faster
than in Mahout.Why is that? Can we make it faster?

Octave:
 x = [1:4000]
 sq_dist(x)

Scala (Mahout):
  val x = Array.range(1,4000,1).map(i => i.toDouble)
  val A =  new DenseMatrix(Array(x)).transpose()
  val dM = sqDist(A)

-- 
Daniel Korzekwa
Machine Learning Engineer
https://www.linkedin.com/in/danielkorzekwa <http://danmachine.com/>

Reply via email to