[jira] [Commented] (MAHOUT-1524) Script to auto-generate and view the Mahout website on a local machine

2015-03-19 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370829#comment-14370829
 ] 

Saleem Ansari commented on MAHOUT-1524:
---

[~Andrew_Palumbo] I am glad it helped. This gist will be open as long as there 
is GitHub, so please add it to the site.

> Script to auto-generate and view the Mahout website on a local machine 
> ---
>
> Key: MAHOUT-1524
> URL: https://issues.apache.org/jira/browse/MAHOUT-1524
> Project: Mahout
>  Issue Type: New Feature
>  Components: Documentation
>Reporter: Saleem Ansari
>  Labels: legacy, scala
> Fix For: 1.0
>
> Attachments: mahout-website.sh
>
>
> Attached with this ticket is a script that creates a simple setup for editing 
> Mahout Website on a local machine.
> It is useful in the sense that, we can edit the source and the changes are 
> automatically reflected in the generated site. All we need to do is refresh 
> the browser. No further steps required.
> So now one can review the website changes ( the complete website ), on a 
> developer's machine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MAHOUT-1524) Script to auto-generate and view the Mahout website on a local machine

2015-03-18 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367556#comment-14367556
 ] 

Saleem Ansari commented on MAHOUT-1524:
---

[~ssc] I have updated the script. This time I was also seeing the same error 
you were mentioned earlier. Its fix is at this link:

 * https://gist.github.com/tuxdna/11223434#comment-1415556



> Script to auto-generate and view the Mahout website on a local machine 
> ---
>
> Key: MAHOUT-1524
> URL: https://issues.apache.org/jira/browse/MAHOUT-1524
> Project: Mahout
>  Issue Type: New Feature
>  Components: Documentation
>Reporter: Saleem Ansari
>  Labels: legacy, scala
> Fix For: 1.0
>
> Attachments: mahout-website.sh
>
>
> Attached with this ticket is a script that creates a simple setup for editing 
> Mahout Website on a local machine.
> It is useful in the sense that, we can edit the source and the changes are 
> automatically reflected in the generated site. All we need to do is refresh 
> the browser. No further steps required.
> So now one can review the website changes ( the complete website ), on a 
> developer's machine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (MAHOUT-1648) Update Mahout's CMS for 0.10.0

2015-03-18 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367552#comment-14367552
 ] 

Saleem Ansari commented on MAHOUT-1648:
---

I just check the script and it wasn't working, so I just updated it and it is 
working now:

 * https://gist.github.com/tuxdna/11223434



> Update Mahout's CMS for 0.10.0
> --
>
> Key: MAHOUT-1648
> URL: https://issues.apache.org/jira/browse/MAHOUT-1648
> Project: Mahout
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 0.9
>Reporter: Pat Ferrel
>Assignee: Andrew Palumbo
>Priority: Blocker
> Fix For: 0.10.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (MAHOUT-1524) Script to auto-generate and view the Mahout website on a local machine

2014-04-23 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1524:
--

Description: 
Attached with this ticket is a script that creates a simple setup for editing 
Mahout Website on a local machine.

It is useful in the sense that, we can edit the source and the changes are 
automatically reflected in the generated site. All we need to do is refresh the 
browser. No further steps required.

So now one can review the website changes ( the complete website ), on a 
developer's machine.


> Script to auto-generate and view the Mahout website on a local machine 
> ---
>
> Key: MAHOUT-1524
> URL: https://issues.apache.org/jira/browse/MAHOUT-1524
> Project: Mahout
>  Issue Type: New Feature
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: mahout-website.sh
>
>
> Attached with this ticket is a script that creates a simple setup for editing 
> Mahout Website on a local machine.
> It is useful in the sense that, we can edit the source and the changes are 
> automatically reflected in the generated site. All we need to do is refresh 
> the browser. No further steps required.
> So now one can review the website changes ( the complete website ), on a 
> developer's machine.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (MAHOUT-1524) Script to auto-generate and view the Mahout website on a local machine

2014-04-23 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978738#comment-13978738
 ] 

Saleem Ansari commented on MAHOUT-1524:
---

[~ssc] The error means that markdownd is not running. While running the script, 
were there any errors after the output "Setup markdownd daemon..." ?

Also, I have checked these on Ubuntu 12.04 and Fedora 20 distributions.
What is your machine configuration ?
Does it have Python installed?



> Script to auto-generate and view the Mahout website on a local machine 
> ---
>
> Key: MAHOUT-1524
> URL: https://issues.apache.org/jira/browse/MAHOUT-1524
> Project: Mahout
>  Issue Type: New Feature
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: mahout-website.sh
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1524) Script to auto-generate and view the Mahout website on a local machine

2014-04-23 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1524:
--

Attachment: mahout-website.sh

Uploaded the script.

> Script to auto-generate and view the Mahout website on a local machine 
> ---
>
> Key: MAHOUT-1524
> URL: https://issues.apache.org/jira/browse/MAHOUT-1524
> Project: Mahout
>  Issue Type: New Feature
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: mahout-website.sh
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (MAHOUT-1524) Script to auto-generate and view the Mahout website on a local machine

2014-04-23 Thread Saleem Ansari (JIRA)
Saleem Ansari created MAHOUT-1524:
-

 Summary: Script to auto-generate and view the Mahout website on a 
local machine 
 Key: MAHOUT-1524
 URL: https://issues.apache.org/jira/browse/MAHOUT-1524
 Project: Mahout
  Issue Type: New Feature
  Components: Documentation
Reporter: Saleem Ansari






--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (MAHOUT-1468) Creating a new page for StreamingKMeans documentation on mahout website

2014-04-23 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13978555#comment-13978555
 ] 

Saleem Ansari commented on MAHOUT-1468:
---

Also note that in generated HTML content, "Stream step" is HTML tag H2 and 
"Overview" is HTML tag H3. But the CSS displays "Overview" bigger as compared 
to "Stream step". Apparently the CSS is not right.

> Creating a new page for StreamingKMeans documentation on mahout website
> ---
>
> Key: MAHOUT-1468
> URL: https://issues.apache.org/jira/browse/MAHOUT-1468
> Project: Mahout
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 1.0
>Reporter: Pavan Kumar N
>Assignee: Andrew Musselman
>  Labels: Documentation
> Fix For: 1.0
>
> Attachments: MAHOUT-1468.diff, StreamingKMeans.txt
>
>
> Separate page required on Streaming K Means algorithm description and 
> overview, explaining the various parameters can be used in streamingkmeans, 
> strategy for parallelization, link to this paper: 
> http://papers.nips.cc/paper/3812-streaming-k-means-approximation.pdf



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1468) Creating a new page for StreamingKMeans documentation on mahout website

2014-04-23 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1468:
--

Attachment: MAHOUT-1468.diff

Updating the patch from Maxim Arap, with some formatting corrections, and a 
drop-down in Clustering menu. The diff is with respect to trunk/ of mahout 
sites repo.

> Creating a new page for StreamingKMeans documentation on mahout website
> ---
>
> Key: MAHOUT-1468
> URL: https://issues.apache.org/jira/browse/MAHOUT-1468
> Project: Mahout
>  Issue Type: Documentation
>  Components: Documentation
>Affects Versions: 1.0
>Reporter: Pavan Kumar N
>Assignee: Andrew Musselman
>  Labels: Documentation
> Fix For: 1.0
>
> Attachments: MAHOUT-1468.diff, StreamingKMeans.txt
>
>
> Separate page required on Streaming K Means algorithm description and 
> overview, explaining the various parameters can be used in streamingkmeans, 
> strategy for parallelization, link to this paper: 
> http://papers.nips.cc/paper/3812-streaming-k-means-approximation.pdf



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1520:
--

Attachment: MAHOUT-1520.diff

Updated patch with correct name.

> Fix links in Mahout website documentation
> -
>
> Key: MAHOUT-1520
> URL: https://issues.apache.org/jira/browse/MAHOUT-1520
> Project: Mahout
>  Issue Type: Improvement
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: MAHOUT-1520.diff, fix-hyphen-typo-in-links.diff
>
>
> Following pages have hyphen in some urls which cause a 404 not found error:
>  * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
>  * https://mahout.apache.org/developers/how-to-release.html
> This can be verified using W3C link check as below:
>  * 
> http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975906#comment-13975906
 ] 

Saleem Ansari edited comment on MAHOUT-1520 at 4/21/14 7:08 PM:


If I go to 
https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html

I find this url: 
https://mahout.apache.org/users/clustering/-http://www.cs.princeton.edu/~blei/papers/bleingjordan2003.pdf.html


There are two issues here:
1. The links have hyphen prefixes, which is wrong.
2. The links may be wrong by themselves as you pointed out.




was (Author: tuxdna):
If I go to 

I find this url:


There are two issues here:
1. The links have hyphen prefixes, which is wrong.
2. The links may be wrong by themselves as you pointed out.



> Fix links in Mahout website documentation
> -
>
> Key: MAHOUT-1520
> URL: https://issues.apache.org/jira/browse/MAHOUT-1520
> Project: Mahout
>  Issue Type: Improvement
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: fix-hyphen-typo-in-links.diff
>
>
> Following pages have hyphen in some urls which cause a 404 not found error:
>  * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
>  * https://mahout.apache.org/developers/how-to-release.html
> This can be verified using W3C link check as below:
>  * 
> http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975906#comment-13975906
 ] 

Saleem Ansari commented on MAHOUT-1520:
---

If I go to 

I find this url:


There are two issues here:
1. The links have hyphen prefixes, which is wrong.
2. The links may be wrong by themselves as you pointed out.



> Fix links in Mahout website documentation
> -
>
> Key: MAHOUT-1520
> URL: https://issues.apache.org/jira/browse/MAHOUT-1520
> Project: Mahout
>  Issue Type: Improvement
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: fix-hyphen-typo-in-links.diff
>
>
> Following pages have hyphen in some urls which cause a 404 not found error:
>  * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
>  * https://mahout.apache.org/developers/how-to-release.html
> This can be verified using W3C link check as below:
>  * 
> http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975548#comment-13975548
 ] 

Saleem Ansari commented on MAHOUT-1520:
---

Here is a nice Firefox Add-on that I used to find broken links:

https://addons.mozilla.org/en-US/firefox/addon/linkchecker/?src=search

I hope that helps.

> Fix links in Mahout website documentation
> -
>
> Key: MAHOUT-1520
> URL: https://issues.apache.org/jira/browse/MAHOUT-1520
> Project: Mahout
>  Issue Type: Improvement
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: fix-hyphen-typo-in-links.diff
>
>
> Following pages have hyphen in some urls which cause a 404 not found error:
>  * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
>  * https://mahout.apache.org/developers/how-to-release.html
> This can be verified using W3C link check as below:
>  * 
> http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1520:
--

Attachment: fix-hyphen-typo-in-links.diff

Patch to fix the documentation links.

> Fix links in Mahout website documentation
> -
>
> Key: MAHOUT-1520
> URL: https://issues.apache.org/jira/browse/MAHOUT-1520
> Project: Mahout
>  Issue Type: Improvement
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: fix-hyphen-typo-in-links.diff
>
>
> Following pages have hyphen in some urls which cause a 404 not found error:
>  * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
>  * https://mahout.apache.org/developers/how-to-release.html
> This can be verified using W3C link check as below:
>  * 
> http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975547#comment-13975547
 ] 

Saleem Ansari commented on MAHOUT-1520:
---

I have attached a patch against following SVN repo:

 http://svn.apache.org/repos/asf/mahout/site/mahout_cms/trunk



> Fix links in Mahout website documentation
> -
>
> Key: MAHOUT-1520
> URL: https://issues.apache.org/jira/browse/MAHOUT-1520
> Project: Mahout
>  Issue Type: Improvement
>  Components: Documentation
>Reporter: Saleem Ansari
> Attachments: fix-hyphen-typo-in-links.diff
>
>
> Following pages have hyphen in some urls which cause a 404 not found error:
>  * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
>  * https://mahout.apache.org/developers/how-to-release.html
> This can be verified using W3C link check as below:
>  * 
> http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (MAHOUT-1520) Fix links in Mahout website documentation

2014-04-21 Thread Saleem Ansari (JIRA)
Saleem Ansari created MAHOUT-1520:
-

 Summary: Fix links in Mahout website documentation
 Key: MAHOUT-1520
 URL: https://issues.apache.org/jira/browse/MAHOUT-1520
 Project: Mahout
  Issue Type: Improvement
  Components: Documentation
Reporter: Saleem Ansari


Following pages have hyphen in some urls which cause a 404 not found error:

 * https://mahout.apache.org/users/clustering/latent-dirichlet-allocation.html
 * https://mahout.apache.org/developers/how-to-release.html

This can be verified using W3C link check as below:

 * 
http://validator.w3.org/checklink?uri=https%3A%2F%2Fmahout.apache.org%2Fusers%2Fclustering%2Flatent-dirichlet-allocation.html&summary=on&hide_type=all&depth=&check=Check#d1code_404





--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13948402#comment-13948402
 ] 

Saleem Ansari commented on MAHOUT-1488:
---

Thanks for promoting this patch.

> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>Assignee: Suneel Marthi
>  Labels: patch
> Fix For: 1.0
>
> Attachments: 
> 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch, error.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
>   ... 28 more
> This is because SpectralKMeansDriver writes clustered points to 
> output/kmeans_out/clusteredPoints/part-m-0
> But DisplaySpectralKMeans is looking at:
> output/clusteredPoints/part-m-0



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1488:
--

Fix Version/s: 1.0

> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
> Fix For: 1.0
>
> Attachments: 
> 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch, error.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
>   ... 28 more
> This is because SpectralKMeansDriver writes clustered points to 
> output/kmeans_out/clusteredPoints/part-m-0
> But DisplaySpectralKMeans is looking at:
> output/clusteredPoints/part-m-0



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947652#comment-13947652
 ] 

Saleem Ansari edited comment on MAHOUT-1488 at 3/26/14 8:16 AM:


Environment:

$ uname -srvmpio
Linux 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 
x86_64 x86_64 x86_64 GNU/Linux

$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Fix against trunk ( 1.0-SNAPSHOT )

$ git rev-parse --abbrev-ref HEAD
trunk

$ git rev-parse HEAD
280675215284559ab2524214edfb0fa6d1fbd8ef




was (Author: tuxdna):
{{{
diff --git 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
index 226ac9d..00e654e 100644
--- 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
+++ 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
@@ -83,6 +83,6 @@ public class DisplaySpectralKMeans extends DisplayClustering {
 
   @Override
   public void paint(Graphics g) {
-plotClusteredSampleData((Graphics2D) g, new Path(OUTPUT));
+plotClusteredSampleData((Graphics2D) g, new Path(new Path(OUTPUT), 
"kmeans_out"));
   }
 }
}}}

> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
> Attachments: 
> 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch, error.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSys

[jira] [Commented] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947659#comment-13947659
 ] 

Saleem Ansari commented on MAHOUT-1488:
---

I have attached full error and patch file.

> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
> Attachments: 
> 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch, error.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
>   ... 28 more
> This is because SpectralKMeansDriver writes clustered points to 
> output/kmeans_out/clusteredPoints/part-m-0
> But DisplaySpectralKMeans is looking at:
> output/clusteredPoints/part-m-0



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1488:
--

Attachment: 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch

Patch file to fix the issue.

> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
> Attachments: 
> 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch, error.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
>   ... 28 more
> This is because SpectralKMeansDriver writes clustered points to 
> output/kmeans_out/clusteredPoints/part-m-0
> But DisplaySpectralKMeans is looking at:
> output/clusteredPoints/part-m-0



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1488:
--

Attachment: error.txt

Full error of the issue.

> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
> Attachments: 
> 0001-MAHOUT-1488-Fix-DisplaySpectralKMeans-failure.patch, error.txt
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
>   ... 28 more
> This is because SpectralKMeansDriver writes clustered points to 
> output/kmeans_out/clusteredPoints/part-m-0
> But DisplaySpectralKMeans is looking at:
> output/clusteredPoints/part-m-0



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947652#comment-13947652
 ] 

Saleem Ansari edited comment on MAHOUT-1488 at 3/26/14 8:09 AM:


{{{
diff --git 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
index 226ac9d..00e654e 100644
--- 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
+++ 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
@@ -83,6 +83,6 @@ public class DisplaySpectralKMeans extends DisplayClustering {
 
   @Override
   public void paint(Graphics g) {
-plotClusteredSampleData((Graphics2D) g, new Path(OUTPUT));
+plotClusteredSampleData((Graphics2D) g, new Path(new Path(OUTPUT), 
"kmeans_out"));
   }
 }
}}}


was (Author: tuxdna):
diff --git 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
index 226ac9d..00e654e 100644
--- 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
+++ 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
@@ -83,6 +83,6 @@ public class DisplaySpectralKMeans extends DisplayClustering {
 
   @Override
   public void paint(Graphics g) {
-plotClusteredSampleData((Graphics2D) g, new Path(OUTPUT));
+plotClusteredSampleData((Graphics2D) g, new Path(new Path(OUTPUT), 
"kmeans_out"));
   }
 }


> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLo

[jira] [Updated] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1488:
--

Status: Patch Available  (was: Open)

diff --git 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
index 226ac9d..00e654e 100644
--- 
a/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
+++ 
b/examples/src/main/java/org/apache/mahout/clustering/display/DisplaySpectralKMeans.java
@@ -83,6 +83,6 @@ public class DisplaySpectralKMeans extends DisplayClustering {
 
   @Override
   public void paint(Graphics g) {
-plotClusteredSampleData((Graphics2D) g, new Path(OUTPUT));
+plotClusteredSampleData((Graphics2D) g, new Path(new Path(OUTPUT), 
"kmeans_out"));
   }
 }


> DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-0 
> does not exist.
> -
>
> Key: MAHOUT-1488
> URL: https://issues.apache.org/jira/browse/MAHOUT-1488
> Project: Mahout
>  Issue Type: Bug
>  Components: Examples
>Affects Versions: 1.0
>Reporter: Saleem Ansari
>  Labels: patch
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Running the DisplaySpectralKMeans class fails with following error, at the 
> GUI display step:
> Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
> output/clusteredPoints/part-m-0
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
>   at 
> org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
>   at 
> org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
>   at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
>   at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
>   at sun.awt.RepaintArea.paint(RepaintArea.java:240)
>   at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
>   at java.awt.Component.dispatchEventImpl(Component.java:4937)
>   at java.awt.Container.dispatchEventImpl(Container.java:2287)
>   at java.awt.Window.dispatchEventImpl(Window.java:2719)
>   at java.awt.Component.dispatchEvent(Component.java:4687)
>   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
>   at java.awt.EventQueue.access$200(EventQueue.java:103)
>   at java.awt.EventQueue$3.run(EventQueue.java:694)
>   at java.awt.EventQueue$3.run(EventQueue.java:692)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>   at java.awt.EventQueue$4.run(EventQueue.java:708)
>   at java.awt.EventQueue$4.run(EventQueue.java:706)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>   at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
>   at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
>   at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
>   at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
>   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
>   at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
> Caused by: java.io.FileNotFoundException: File 
> file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
>  does not exist.
>   at 
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
>   at 
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
>   at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
>   at 
> org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
>   at 
> org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
>   ... 28 more
> This is because SpectralKMeansDriver writes clustered points to 
> output/kmeans_out/clusteredPoints/part-m-0
> But DisplaySpectralKMeans is looking at:
> output/clusteredPoints/part-m-00

[jira] [Created] (MAHOUT-1488) DisplaySpectralKMeans fails: examples/output/clusteredPoints/part-m-00000 does not exist.

2014-03-26 Thread Saleem Ansari (JIRA)
Saleem Ansari created MAHOUT-1488:
-

 Summary: DisplaySpectralKMeans fails: 
examples/output/clusteredPoints/part-m-0 does not exist.
 Key: MAHOUT-1488
 URL: https://issues.apache.org/jira/browse/MAHOUT-1488
 Project: Mahout
  Issue Type: Bug
  Components: Examples
Affects Versions: 1.0
Reporter: Saleem Ansari


Running the DisplaySpectralKMeans class fails with following error, at the GUI 
display step:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: 
output/clusteredPoints/part-m-0
at 
org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:63)
at 
org.apache.mahout.clustering.display.DisplayClustering.plotClusteredSampleData(DisplayClustering.java:203)
at 
org.apache.mahout.clustering.display.DisplaySpectralKMeans.paint(DisplaySpectralKMeans.java:86)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)
at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:73)
at sun.awt.RepaintArea.paint(RepaintArea.java:240)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:591)
at java.awt.Component.dispatchEventImpl(Component.java:4937)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.io.FileNotFoundException: File 
file:/home/saleem/work/learn/external/mahout/examples/output/clusteredPoints/part-m-0
 does not exist.
at 
org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:402)
at 
org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:255)
at org.apache.hadoop.fs.FileSystem.getLength(FileSystem.java:816)
at 
org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1479)
at 
org.apache.hadoop.io.SequenceFile$Reader.(SequenceFile.java:1474)
at 
org.apache.mahout.common.iterator.sequencefile.SequenceFileIterator.(SequenceFileIterator.java:63)
at 
org.apache.mahout.common.iterator.sequencefile.SequenceFileIterable.iterator(SequenceFileIterable.java:61)
... 28 more

This is because SpectralKMeansDriver writes clustered points to 
output/kmeans_out/clusteredPoints/part-m-0

But DisplaySpectralKMeans is looking at:
output/clusteredPoints/part-m-0





--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Comment Edited] (MAHOUT-1004) Distributed User-based Collaborative Filtering

2013-07-13 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704407#comment-13704407
 ] 

Saleem Ansari edited comment on MAHOUT-1004 at 7/13/13 10:49 AM:
-

To understand how the user-based recommender would work, I have re-based the 
user-based recommender patch against trunk codebase. Now it compiles fine. 
However the tests are failing.


What I basically changed?

 * Use the latest API e.g. PriorityQueue instead of TopK, nonZeros.iterator() 
instead of iterateNonZero().

-Test failures-: http://pastebin.com/PxdQ4qw2

Test failures updated:  http://pastebin.com/sQWcG2Ya

 * -I think my ( Cygwin ) environment is not setup properly, hence the 
permission issues, due to which some tests are failing.-
 * Now ran the tests on Fedora 19 with a sane environment, so lesser tests fail.


Please have a look at the updated patch: 
[^MAHOUT-1004-trunk-rebased-but-tests-fail.patch]. In the meantime I will 
understand what would need to be re-factored and try to fix the test cases.



  was (Author: tuxdna):
To understand how the user-based recommender would work, I have re-based 
the user-based recommender patch against trunk codebase. Now it compiles fine. 
However the tests are failing.


What I basically changed?

 * Use the latest API e.g. PriorityQueue instead of TopK, nonZeros.iterator() 
instead of iterateNonZero().

Test failures: http://pastebin.com/PxdQ4qw2

 * I think my ( Cygwin ) environment is not setup properly, hence the 
permission issues, due to which some tests are failing.


Please have a look at the updated patch: 
[^MAHOUT-1004-trunk-rebased-but-tests-fail.patch]. In the meantime I will 
understand what would need to be re-factored and try to fix the test cases.


  
> Distributed User-based Collaborative Filtering
> --
>
> Key: MAHOUT-1004
> URL: https://issues.apache.org/jira/browse/MAHOUT-1004
> Project: Mahout
>  Issue Type: New Feature
>  Components: Collaborative Filtering
>Affects Versions: 0.7
>Reporter: Kris Jack
>Priority: Minor
>  Labels: Recommender, User-based
> Fix For: Backlog
>
> Attachments: MAHOUT-1004.patch, 
> MAHOUT-1004-trunk-rebased-but-tests-fail.patch
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> I'd like to contribute code that implements a distributed user-based 
> collaborative filtering algorithm.
> In brief, so far I've taken the code for the existing 
> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob and created a new 
> org.apache.mahout.cf.taste.hadoop.user.RecommenderJob.  With help from Sean 
> Owen, I followed a similar approach to the item-based implementation, but 
> multiplied a user-user matrix with a user-item vector rather than an 
> item-item matrix with an item-user vector.  The result of the multiplication 
> then needs to be transposed in order to output recommendations by user id.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (MAHOUT-1004) Distributed User-based Collaborative Filtering

2013-07-10 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13704407#comment-13704407
 ] 

Saleem Ansari commented on MAHOUT-1004:
---

To understand how the user-based recommender would work, I have re-based the 
user-based recommender patch against trunk codebase. Now it compiles fine. 
However the tests are failing.


What I basically changed?

 * Use the latest API e.g. PriorityQueue instead of TopK, nonZeros.iterator() 
instead of iterateNonZero().

Test failures: http://pastebin.com/PxdQ4qw2

 * I think my ( Cygwin ) environment is not setup properly, hence the 
permission issues, due to which some tests are failing.


Please have a look at the updated patch: 
[^MAHOUT-1004-trunk-rebased-but-tests-fail.patch]. In the meantime I will 
understand what would need to be re-factored and try to fix the test cases.



> Distributed User-based Collaborative Filtering
> --
>
> Key: MAHOUT-1004
> URL: https://issues.apache.org/jira/browse/MAHOUT-1004
> Project: Mahout
>  Issue Type: New Feature
>  Components: Collaborative Filtering
>Affects Versions: 0.7
>Reporter: Kris Jack
>Priority: Minor
>  Labels: Recommender, User-based
> Fix For: Backlog
>
> Attachments: MAHOUT-1004.patch, 
> MAHOUT-1004-trunk-rebased-but-tests-fail.patch
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> I'd like to contribute code that implements a distributed user-based 
> collaborative filtering algorithm.
> In brief, so far I've taken the code for the existing 
> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob and created a new 
> org.apache.mahout.cf.taste.hadoop.user.RecommenderJob.  With help from Sean 
> Owen, I followed a similar approach to the item-based implementation, but 
> multiplied a user-user matrix with a user-item vector rather than an 
> item-item matrix with an item-user vector.  The result of the multiplication 
> then needs to be transposed in order to output recommendations by user id.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (MAHOUT-1004) Distributed User-based Collaborative Filtering

2013-07-10 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1004:
--

Attachment: MAHOUT-1004-trunk-rebased-but-tests-fail.patch

This patch is to re-base earlier patch against trunk version of Mahout codebase.

> Distributed User-based Collaborative Filtering
> --
>
> Key: MAHOUT-1004
> URL: https://issues.apache.org/jira/browse/MAHOUT-1004
> Project: Mahout
>  Issue Type: New Feature
>  Components: Collaborative Filtering
>Affects Versions: 0.7
>Reporter: Kris Jack
>Priority: Minor
>  Labels: Recommender, User-based
> Fix For: Backlog
>
> Attachments: MAHOUT-1004.patch, 
> MAHOUT-1004-trunk-rebased-but-tests-fail.patch
>
>   Original Estimate: 336h
>  Remaining Estimate: 336h
>
> I'd like to contribute code that implements a distributed user-based 
> collaborative filtering algorithm.
> In brief, so far I've taken the code for the existing 
> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob and created a new 
> org.apache.mahout.cf.taste.hadoop.user.RecommenderJob.  With help from Sean 
> Owen, I followed a similar approach to the item-based implementation, but 
> multiplied a user-user matrix with a user-item vector rather than an 
> item-item matrix with an item-user vector.  The result of the multiplication 
> then needs to be transposed in order to output recommendations by user id.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (MAHOUT-1193) We may want a BlockSparseMatrix

2013-07-08 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702344#comment-13702344
 ] 

Saleem Ansari commented on MAHOUT-1193:
---

Hello Ted,

I have fixed the test cases. The central issue to the problem was that the 
class members "rows" and "columns" were conflicting with the parent class 
members ( AbstractMatrix ).

That fixed all test cases except two:
 * testClone() -- this failed because of missing clone() method 
 * testViewColumnIndexOver() -- this was failing because BlockSparseMatrix have 
extensible rows

I have added clone() method and also fixed remaining test cases in 
BlockSparseMatrixTest class.

Now all tests are passing. Please have a look at the patch attached in previous 
comment: [^MAHOUT-1193-all-tests-pass.patch]


Thanks,
Saleem


> We may want a BlockSparseMatrix
> ---
>
> Key: MAHOUT-1193
> URL: https://issues.apache.org/jira/browse/MAHOUT-1193
> Project: Mahout
>  Issue Type: Bug
>Reporter: Ted Dunning
> Fix For: Backlog
>
> Attachments: MAHOUT-1193-all-tests-pass.patch, 
> MAHOUT-1193-fix-compile-errors-tests-still-fail.patch, MAHOUT-1193.patch
>
>
> Here is an implementation.
> Is it good enough to commit?
> Is it useful?
> Is it redundant?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (MAHOUT-1193) We may want a BlockSparseMatrix

2013-07-08 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1193:
--

Attachment: MAHOUT-1193-all-tests-pass.patch

Patch that fixes all the tests for BlockSparseMatrix against trunk codebase.

> We may want a BlockSparseMatrix
> ---
>
> Key: MAHOUT-1193
> URL: https://issues.apache.org/jira/browse/MAHOUT-1193
> Project: Mahout
>  Issue Type: Bug
>Reporter: Ted Dunning
> Fix For: Backlog
>
> Attachments: MAHOUT-1193-all-tests-pass.patch, 
> MAHOUT-1193-fix-compile-errors-tests-still-fail.patch, MAHOUT-1193.patch
>
>
> Here is an implementation.
> Is it good enough to commit?
> Is it useful?
> Is it redundant?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (MAHOUT-1193) We may want a BlockSparseMatrix

2013-07-05 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700957#comment-13700957
 ] 

Saleem Ansari commented on MAHOUT-1193:
---

I have attached a patch which fixes the errors as mentioned above.

> We may want a BlockSparseMatrix
> ---
>
> Key: MAHOUT-1193
> URL: https://issues.apache.org/jira/browse/MAHOUT-1193
> Project: Mahout
>  Issue Type: Bug
>Reporter: Ted Dunning
> Fix For: Backlog
>
> Attachments: MAHOUT-1193-fix-compile-errors-tests-still-fail.patch, 
> MAHOUT-1193.patch
>
>
> Here is an implementation.
> Is it good enough to commit?
> Is it useful?
> Is it redundant?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (MAHOUT-1193) We may want a BlockSparseMatrix

2013-07-05 Thread Saleem Ansari (JIRA)

[ 
https://issues.apache.org/jira/browse/MAHOUT-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700956#comment-13700956
 ] 

Saleem Ansari commented on MAHOUT-1193:
---

Hi,

I was trying to understand how this Block Sparse Matrix is supposed to work. To 
begin with, I jave only tried to fix compile errors with respect to current 
trunk codebase.

BlockSparseMatrix.java

 * Resolved compilation errors against trunk.
 * Added unimplemented methods:  mergeUpdates(), getLookupCost(), 
getIteratorAdvanceCost(), isAddConstantTime()
 * Implemented methods: mergeUpdates(), getLookupCost(), 
getIteratorAdvanceCost(), isAddConstantTime()
 * Changed getColumn() -> viewColumn()
 * Changed getRow() -> viewRow()

BlockSparseMatrixTest.java

 * Use viewRow instead of getRow. The member 'test' is still private
 * Comment out private member

However many of the tests failed. I have put the test errors in a pastebin:

 * Test Errors: http://pastebin.com/0Za4AF3q

Is there any reference document or a paper against which this implementation 
was made?

Thanks,
Saleem

> We may want a BlockSparseMatrix
> ---
>
> Key: MAHOUT-1193
> URL: https://issues.apache.org/jira/browse/MAHOUT-1193
> Project: Mahout
>  Issue Type: Bug
>Reporter: Ted Dunning
> Fix For: Backlog
>
> Attachments: MAHOUT-1193-fix-compile-errors-tests-still-fail.patch, 
> MAHOUT-1193.patch
>
>
> Here is an implementation.
> Is it good enough to commit?
> Is it useful?
> Is it redundant?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (MAHOUT-1193) We may want a BlockSparseMatrix

2013-07-05 Thread Saleem Ansari (JIRA)

 [ 
https://issues.apache.org/jira/browse/MAHOUT-1193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Saleem Ansari updated MAHOUT-1193:
--

Attachment: MAHOUT-1193-fix-compile-errors-tests-still-fail.patch

> We may want a BlockSparseMatrix
> ---
>
> Key: MAHOUT-1193
> URL: https://issues.apache.org/jira/browse/MAHOUT-1193
> Project: Mahout
>  Issue Type: Bug
>Reporter: Ted Dunning
> Fix For: Backlog
>
> Attachments: MAHOUT-1193-fix-compile-errors-tests-still-fail.patch, 
> MAHOUT-1193.patch
>
>
> Here is an implementation.
> Is it good enough to commit?
> Is it useful?
> Is it redundant?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira