breeze KMeans vs nak KMeans ?

211 views
Skip to first unread message

vivace

unread,
Aug 14, 2014, 3:56:35 PM8/14/14
to scalanlp...@googlegroups.com
Hi

I have been running KMeans with nak. As per the example I do something like:

  val kmeans = new Kmeans[SparseVector[Double]](
    sparseExamples.toIndexedSeq,
    distanceFun,
    minChangeInDispersion=0.0000001,
    maxIterations=10
  )

I wanted to then plot some things and experiment with breeze-viz so i included the dependencies :
"org.scalanlp" % "breeze_2.10" % "0.9",
 "org.scalanlp" % "breeze-natives_2.10" % "0.9",
  

However now i am finding this error: 

could not find implicit value for parameter space: breeze.math.MutableInnerProductSpace[breeze.linalg.SparseVector[Double],Double]

[error] Error occurred in an application involving default arguments.

[error]   val kmeans = new Kmeans[SparseVector[Double]](


So my question is where can i get this implicit MutableInnerProductSpace?

David Hall

unread,
Aug 14, 2014, 5:10:00 PM8/14/14
to scalanlp...@googlegroups.com
Don't use Breeze 0.9 with Nak right now. Use 0.8.1. We renamed MutableInnerProductSpace to MutableInnerProductVectorSpace in 0.9, and haven't updated Nak yet.

-- David

vivace

unread,
Aug 14, 2014, 5:57:45 PM8/14/14
to scalanlp...@googlegroups.com, dl...@cs.berkeley.edu
Thanks 
how about breeze-viz ?

i keep getting this error: 

info] downloading http://repo1.maven.org/maven2/org/scalamacros/paradise_2.11.1/2.1.0-M1/paradise_2.11.1-2.1.0-M1.jar ...

[error] Modules were resolved with conflicting cross-version suffixes :

[error]    org.scalanlp:breeze-macros _2.10, _2.11

[error]    org.scalanlp:breeze _2.10, _2.11

[t

David Hall

unread,
Aug 14, 2014, 6:01:54 PM8/14/14
to scalanlp...@googlegroups.com
I haven't released a new Breeze-Viz yet, sorry. This week or this weekend.

-- David

matthew Drescher

unread,
Aug 14, 2014, 6:10:33 PM8/14/14
to scalanlp...@googlegroups.com
ok no prob -- thanks 

David Hall

unread,
Aug 15, 2014, 5:24:34 AM8/15/14
to scalanlp...@googlegroups.com
ok, breeze-viz release is cut and pushed to sonatype. Nak is going to be a bit of a pain, and it's probably going to need to wait on 0.9.1, because most of the changes that effect Nak from 0.8 to 0.9 are going to change again between 0.9 and 0.9.1... and I don't feel like doing the changes twice. :-)

0.9.1 should be out soonish, in a week or two.

matthew Drescher

unread,
Aug 15, 2014, 12:41:23 PM8/15/14
to scalanlp...@googlegroups.com
great, thanks so much!!

Gabriel Schubiner

unread,
Aug 22, 2014, 4:24:23 PM8/22/14
to scalanlp...@googlegroups.com
I have an updated Nak that works with the master branch of breeze, although currently it'smixed in with a feature branch. I can separate some of it out though and push that when it's needed.

matthew Drescher

unread,
Aug 26, 2014, 5:05:52 PM8/26/14
to scalanlp...@googlegroups.com
Does this Nak version have the kNearestNeighbors as well :)) if so that would be awesome. :)
Reply all
Reply to author
Forward
0 new messages