On Thu, Aug 25, 2011 at 10:11 AM, Jeffrey <[email protected]> wrote:
> I am trying to write a short script to cluster my data via clojure (calling > Mahout classes though). I have my input data in this format (which is an > output from a > > This line you're instantiating a new SequentialAccessSparseVector, with the value of cardinality being "count (vals photo_list)" - you need to have all of your Vectors exist with the same cardinality (ie. they live in the same vector space, mathematically). So you need to figure out how big they need to be, and instantiate them *all* with this cardinality. > (new SequentialAccessSparseVector > (count (vals photo_list))) > The error you are getting below: EDIT: apparently cardinality needs to be 1, need to figure out how to do it > is actually telling you that you're trying to say all vectors should be cardinality 1, but it found some vectors with cardinality 10, so it threw an exception. -jake
