You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Gabriel Reid (JIRA)" <ji...@apache.org> on 2012/09/19 22:07:07 UTC
[jira] [Created] (MAHOUT-1070) DisplayKMeans example has
transposed/mislabelled arguments
Gabriel Reid created MAHOUT-1070:
------------------------------------
Summary: DisplayKMeans example has transposed/mislabelled arguments
Key: MAHOUT-1070
URL: https://issues.apache.org/jira/browse/MAHOUT-1070
Project: Mahout
Issue Type: Bug
Components: Examples
Affects Versions: 0.7
Reporter: Gabriel Reid
Priority: Minor
The org.apache.mahout.clustering.display.DisplayKMeans example class uses a value for k (numClusters) and maximum number of iterations to come to convergence, but their use is transposed (i.e. the numClusters is used as max iterations, and max iterations is used for numClusters). Furthermore, a second hard-coded version of the value is used. The end result is that it's not directly possible to experiment with different values of numClusters and maxIterations.
--
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] [Assigned] (MAHOUT-1070) DisplayKMeans example has
transposed/mislabelled arguments
Posted by "Paritosh Ranjan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paritosh Ranjan reassigned MAHOUT-1070:
---------------------------------------
Assignee: Paritosh Ranjan
> DisplayKMeans example has transposed/mislabelled arguments
> ----------------------------------------------------------
>
> Key: MAHOUT-1070
> URL: https://issues.apache.org/jira/browse/MAHOUT-1070
> Project: Mahout
> Issue Type: Bug
> Components: Examples
> Affects Versions: 0.7
> Reporter: Gabriel Reid
> Assignee: Paritosh Ranjan
> Priority: Minor
> Attachments: MAHOUT-1070.patch
>
>
> The org.apache.mahout.clustering.display.DisplayKMeans example class uses a value for k (numClusters) and maximum number of iterations to come to convergence, but their use is transposed (i.e. the numClusters is used as max iterations, and max iterations is used for numClusters). Furthermore, a second hard-coded version of the value is used. The end result is that it's not directly possible to experiment with different values of numClusters and maxIterations.
--
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-1070) DisplayKMeans example has
transposed/mislabelled arguments
Posted by "Gabriel Reid (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabriel Reid updated MAHOUT-1070:
---------------------------------
Attachment: MAHOUT-1070.patch
Patch to resolve the issue.
> DisplayKMeans example has transposed/mislabelled arguments
> ----------------------------------------------------------
>
> Key: MAHOUT-1070
> URL: https://issues.apache.org/jira/browse/MAHOUT-1070
> Project: Mahout
> Issue Type: Bug
> Components: Examples
> Affects Versions: 0.7
> Reporter: Gabriel Reid
> Priority: Minor
> Attachments: MAHOUT-1070.patch
>
>
> The org.apache.mahout.clustering.display.DisplayKMeans example class uses a value for k (numClusters) and maximum number of iterations to come to convergence, but their use is transposed (i.e. the numClusters is used as max iterations, and max iterations is used for numClusters). Furthermore, a second hard-coded version of the value is used. The end result is that it's not directly possible to experiment with different values of numClusters and maxIterations.
--
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-1070) DisplayKMeans example has
transposed/mislabelled arguments
Posted by "Paritosh Ranjan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462623#comment-13462623 ]
Paritosh Ranjan commented on MAHOUT-1070:
-----------------------------------------
The problem mentioned is visible in the patch.
The solution provided also looks correct. I will try to test it and commit it. Thanks for contributing.
> DisplayKMeans example has transposed/mislabelled arguments
> ----------------------------------------------------------
>
> Key: MAHOUT-1070
> URL: https://issues.apache.org/jira/browse/MAHOUT-1070
> Project: Mahout
> Issue Type: Bug
> Components: Examples
> Affects Versions: 0.7
> Reporter: Gabriel Reid
> Priority: Minor
> Attachments: MAHOUT-1070.patch
>
>
> The org.apache.mahout.clustering.display.DisplayKMeans example class uses a value for k (numClusters) and maximum number of iterations to come to convergence, but their use is transposed (i.e. the numClusters is used as max iterations, and max iterations is used for numClusters). Furthermore, a second hard-coded version of the value is used. The end result is that it's not directly possible to experiment with different values of numClusters and maxIterations.
--
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-1070) DisplayKMeans example has
transposed/mislabelled arguments
Posted by "XuHao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAHOUT-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462615#comment-13462615 ]
XuHao commented on MAHOUT-1070:
-------------------------------
Bravo! Just catch the same bug and the patch works !
> DisplayKMeans example has transposed/mislabelled arguments
> ----------------------------------------------------------
>
> Key: MAHOUT-1070
> URL: https://issues.apache.org/jira/browse/MAHOUT-1070
> Project: Mahout
> Issue Type: Bug
> Components: Examples
> Affects Versions: 0.7
> Reporter: Gabriel Reid
> Priority: Minor
> Attachments: MAHOUT-1070.patch
>
>
> The org.apache.mahout.clustering.display.DisplayKMeans example class uses a value for k (numClusters) and maximum number of iterations to come to convergence, but their use is transposed (i.e. the numClusters is used as max iterations, and max iterations is used for numClusters). Furthermore, a second hard-coded version of the value is used. The end result is that it's not directly possible to experiment with different values of numClusters and maxIterations.
--
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