|
|
-
can I visualize clusters using the mahout binary?
Daniel Quach 2012-02-02, 03:36
I just ran k-means over a set of data and I was wondering if there is a way to visualize these clusters on a 2D plane without having to write code, but rather running the mahout binary (bin/mahout)
I don't see any available programs after calling bin/mahout to visualize clusters.
+
Daniel Quach 2012-02-02, 03:36
-
Re: can I visualize clusters using the mahout binary?
Suneel Marthi 2012-02-02, 04:10
You can use mahout's clusterdump utility ./bin/mahout clusterdump to dump the clusters to a graphml file (look at the help for clusterdump ./bin/mahout clusterdump -help)
You can then use a visualization tool like Gephi or Graphviz, to load the graphml file and visualize the clusters.
________________________________ From: Daniel Quach <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: Wednesday, February 1, 2012 10:36 PM Subject: can I visualize clusters using the mahout binary? I just ran k-means over a set of data and I was wondering if there is a way to visualize these clusters on a 2D plane without having to write code, but rather running the mahout binary (bin/mahout)
I don't see any available programs after calling bin/mahout to visualize clusters.
+
Suneel Marthi 2012-02-02, 04:10
-
Re: can I visualize clusters using the mahout binary?
rahul raghavendhra 2012-03-08, 06:25
Hi All,
I want to visualize the clusters. So i decided to export as graph ML using
./mahout clusterdump --seqFileDir output/clusters-2-final --pointsDir output/clusteredPoints --outputFormat GRAPH_ML -o answerq.txt
but it is not working and i got the following exception..
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mahout.common.StringUtils.escapeXML(Ljava/lang/String;)Ljava/lang/String; at org.apache.mahout.utils.clustering.GraphMLClusterWriter.createNode(GraphMLClusterWriter.java:192) at org.apache.mahout.utils.clustering.GraphMLClusterWriter.write(GraphMLClusterWriter.java:114) at org.apache.mahout.utils.clustering.AbstractClusterWriter.write(AbstractClusterWriter.java:168) at org.apache.mahout.utils.clustering.AbstractClusterWriter.write(AbstractClusterWriter.java:155) at org.apache.mahout.utils.clustering.ClusterDumper.printClusters(ClusterDumper.java:187) at org.apache.mahout.utils.clustering.ClusterDumper.run(ClusterDumper.java:153) at org.apache.mahout.utils.clustering.ClusterDumper.main(ClusterDumper.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68) at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139) at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616)
P.S : TEXT and CSV option is working.. Can we use that csv for visualizing ? if so wat tool can be used ? please help ./rahul
On Thu, Feb 2, 2012 at 9:40 AM, Suneel Marthi <[EMAIL PROTECTED]>wrote:
> You can use mahout's clusterdump utility > > > ./bin/mahout clusterdump > > > to dump the clusters to a graphml file (look at the help for clusterdump > ./bin/mahout clusterdump -help) > > You can then use a visualization tool like Gephi or Graphviz, to load the > graphml file and visualize the clusters. > > > > ________________________________ > From: Daniel Quach <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Sent: Wednesday, February 1, 2012 10:36 PM > Subject: can I visualize clusters using the mahout binary? > > I just ran k-means over a set of data and I was wondering if there is a > way to visualize these clusters on a 2D plane without having to write code, > but rather running the mahout binary (bin/mahout) > > I don't see any available programs after calling bin/mahout to visualize > clusters. >
+
rahul raghavendhra 2012-03-08, 06:25
-
Re: can I visualize clusters using the mahout binary?
Dmitriy Lyubimov 2012-03-09, 18:42
I plan to enable some degree if a mixed environment between R and Mahout but it will probably take several months before i will get meaningful coverage of stuff Mahout produces.
On Wed, Feb 1, 2012 at 7:36 PM, Daniel Quach <[EMAIL PROTECTED]> wrote: > I just ran k-means over a set of data and I was wondering if there is a way to visualize these clusters on a 2D plane without having to write code, but rather running the mahout binary (bin/mahout) > > I don't see any available programs after calling bin/mahout to visualize clusters.
+
Dmitriy Lyubimov 2012-03-09, 18:42
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext