You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Dhruv <dh...@gmail.com> on 2011/04/30 22:04:05 UTC

Re: Mahout In Action KMeans Clustering example

Thanks, I noticed that there have been some changes to the API which have
not been updated yet in the MEAP MIA chapters on clustering.

In the same vein, I'm confused about the location and documentation of the
RandomAccessSparseVector class which is used in the examples in the book.

I can't find the RandomAccessSparseVector class in the latest API docs:

https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/org/apache/mahout/math/package-summary.html

However, a google search returns the following:
http://search-lucene.com/jd/mahout/math/org/apache/mahout/math/RandomAccessSparseVector.html

Even in my latest checkout of the trunk, I can't find the class under the
o.a.m.Math package.

What am I doing wrong?


On Sat, Apr 30, 2011 at 12:12 AM, Robin Anil <ro...@gmail.com> wrote:

>
> https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/org/apache/mahout/clustering/kmeans/RandomSeedGenerator.html
>

Re: Mahout In Action KMeans Clustering example

Posted by Ted Dunning <te...@gmail.com>.
Emacs is fine for projects you already know, but having an IDE that helps
you
explore and which knows where everything is can be a godsend with unfamiliar
code.

Also, IntelliJ natively understands maven so you can just open the pom as if
it were
a project.

On Sat, Apr 30, 2011 at 1:40 PM, Dhruv <dh...@gmail.com> wrote:

> > That is the javadoc for Mahout Core, not Mahout Math.
> >
> > That can be confusing.
> >
> > The clover output might be more helpful:
> > https://builds.apache.org/hudson/job/Mahout-Quality/clover/
> >
> > But using a good IDE is probably the most important thing.
> >
> >
> Thanks, this helped a lot.
>
> I have been using Emacs with manual classpath addition and compilation on
> the command line but given all this confusion, I'm switching gears to
> IntelliJ for this project.

Re: Mahout In Action KMeans Clustering example

Posted by Dhruv <dh...@gmail.com>.
On Sat, Apr 30, 2011 at 4:13 PM, Ted Dunning <te...@gmail.com> wrote:

>
>
> That is the javadoc for Mahout Core, not Mahout Math.
>
> That can be confusing.
>
> The clover output might be more helpful:
> https://builds.apache.org/hudson/job/Mahout-Quality/clover/
>
> But using a good IDE is probably the most important thing.
>
>
Thanks, this helped a lot.

I have been using Emacs with manual classpath addition and compilation on
the command line but given all this confusion, I'm switching gears to
IntelliJ for this project.

Re: Mahout In Action KMeans Clustering example

Posted by Ted Dunning <te...@gmail.com>.
On Sat, Apr 30, 2011 at 1:04 PM, Dhruv <dh...@gmail.com> wrote:

> In the same vein, I'm confused about the location and documentation of the
> RandomAccessSparseVector class which is used in the examples in the book.
>

Aren't you using an IDE that finds classes for you?

For me with IntelliJ, one keystroke invokes class search which only requires
me to type the UpperCase characters in the name.

With that, I find: org.apache.mahout.math.RandomAccessSparseVector



> I can't find the RandomAccessSparseVector class in the latest API docs:
>
>
> https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/org/apache/mahout/<https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/org/apache/mahout/math/package-summary.html>


That is the javadoc for Mahout Core, not Mahout Math.

That can be confusing.

The clover output might be more helpful:
https://builds.apache.org/hudson/job/Mahout-Quality/clover/

But using a good IDE is probably the most important thing.


> Even in my latest checkout of the trunk, I can't find the class under the
> o.a.m.Math package.
>

o.a.m.math

What am I doing wrong?
>

Wrong case on the package?

Not looking in the math module?

Re: Mahout In Action KMeans Clustering example

Posted by Ted Dunning <te...@gmail.com>.
On Sat, Apr 30, 2011 at 1:04 PM, Dhruv <dh...@gmail.com> wrote:

> In the same vein, I'm confused about the location and documentation of the
> RandomAccessSparseVector class which is used in the examples in the book.
>

Aren't you using an IDE that finds classes for you?

For me with IntelliJ, one keystroke invokes class search which only requires
me to type the UpperCase characters in the name.

With that, I find: org.apache.mahout.math.RandomAccessSparseVector



> I can't find the RandomAccessSparseVector class in the latest API docs:
>
>
> https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/org/apache/mahout/<https://builds.apache.org/hudson/job/Mahout-Quality/javadoc/org/apache/mahout/math/package-summary.html>


That is the javadoc for Mahout Core, not Mahout Math.

That can be confusing.

The clover output might be more helpful:
https://builds.apache.org/hudson/job/Mahout-Quality/clover/

But using a good IDE is probably the most important thing.


> Even in my latest checkout of the trunk, I can't find the class under the
> o.a.m.Math package.
>

o.a.m.math

What am I doing wrong?
>

Wrong case on the package?

Not looking in the math module?