You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by deneche abdelhakim <ad...@gmail.com> on 2009/10/08 09:13:22 UTC
Re: [jira] Commented: (MAHOUT-138) Convert main() methods to use
Commons CLI for argument processing
There is also a main() method in:
./examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/CDGA.java
I should be able to post a patch saturday concerning CDInfosTool and CDGA.
On Thu, Oct 8, 2009 at 7:29 AM, Isabel Drost (JIRA) <ji...@apache.org> wrote:
>
> [ https://issues.apache.org/jira/browse/MAHOUT-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763378#action_12763378 ]
>
> Isabel Drost commented on MAHOUT-138:
> -------------------------------------
>
>
> From the classes above, I worked through up to the classification stuff. Documentation is in the wiki at: http://cwiki.apache.org/confluence/display/MAHOUT/ClassifyingYourData (the links with commandline in their name) and http://cwiki.apache.org/confluence/display/MAHOUT/ClusteringYourData (again the links with commandline in their name).
>
> Currently their are only examples left to convert as well as three classes containing main methods from the taste code:
>
> ./core/src/main/java/org/apache/mahout/cf/taste/hadoop/RecommenderJob.java
> ./core/src/main/java/org/apache/mahout/cf/taste/hadoop/SlopeOneDiffsToAveragesJob.java
> ./core/src/main/java/org/apache/mahout/cf/taste/hadoop/SlopeOnePrefsToDiffsJob.java
> ./examples/src/main/java/org/apache/mahout/cf/taste/example/bookcrossing/BookCrossingRecommenderEvaluatorRunner.java
> ./examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/NetflixRecommenderEvaluatorRunner.java
> ./examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/TransposeToByUser.java
> ./examples/src/main/java/org/apache/mahout/cf/taste/example/jester/JesterRecommenderEvaluatorRunner.java
> ./examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensRecommenderEvaluatorRunner.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/dirichlet/Job.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/canopy/Job.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/canopy/InputDriver.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/kmeans/Job.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/meanshift/Job.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/meanshift/InputDriver.java
> ./examples/src/main/java/org/apache/mahout/clustering/syntheticcontrol/meanshift/OutputDriver.java
> ./examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/tool/CDInfosTool.java
>
>
>
>> Convert main() methods to use Commons CLI for argument processing
>> -----------------------------------------------------------------
>>
>> Key: MAHOUT-138
>> URL: https://issues.apache.org/jira/browse/MAHOUT-138
>> Project: Mahout
>> Issue Type: Improvement
>> Affects Versions: 0.2
>> Reporter: Grant Ingersoll
>> Assignee: Grant Ingersoll
>> Priority: Minor
>> Fix For: 0.3
>>
>> Attachments: MAHOUT-138.patch, MAHOUT-138_fuzzyKMeansJob.patch
>>
>>
>> Commons CLI is in the classpath and makes it much easier to handle command line args and they are more self-documenting when done right. We should convert our main methods to use CLI
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Re: [jira] Commented: (MAHOUT-138) Convert main() methods to use
Commons CLI for argument processing
Posted by Isabel Drost <is...@apache.org>.
On Thu, 8 Oct 2009 07:52:21 -0300
Grant Ingersoll <gs...@apache.org> wrote:
> Personally, I'd just commit. The goal here is to convert to CLI.
> It doesn't take a whole lot of review. Only thing I would suggest is
> we be consistent about what we name arguments, so have a look at the
> other ones for precedent.
+1 You can also have a look at DefaultOptionCreator - I have created a
few methods to keep creation of the most common options (input,
output, help and the like) in one place.
Isabel
Re: [jira] Commented: (MAHOUT-138) Convert main() methods to use Commons CLI for argument processing
Posted by Grant Ingersoll <gs...@apache.org>.
On Oct 8, 2009, at 4:13 AM, deneche abdelhakim wrote:
> There is also a main() method in:
>
> ./examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/CDGA.java
>
> I should be able to post a patch saturday concerning CDInfosTool and
> CDGA.
Personally, I'd just commit. The goal here is to convert to CLI. It
doesn't take a whole lot of review. Only thing I would suggest is we
be consistent about what we name arguments, so have a look at the
other ones for precedent.
-Grant
>
> On Thu, Oct 8, 2009 at 7:29 AM, Isabel Drost (JIRA)
> <ji...@apache.org> wrote:
>>
>> [ https://issues.apache.org/jira/browse/MAHOUT-138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763378#action_12763378
>> ]
>>
>> Isabel Drost commented on MAHOUT-138:
>> -------------------------------------
>>
>>
>> From the classes above, I worked through up to the classification
>> stuff. Documentation is in the wiki at: http://cwiki.apache.org/confluence/display/MAHOUT/ClassifyingYourData
>> (the links with commandline in their name) and http://cwiki.apache.org/confluence/display/MAHOUT/ClusteringYourData
>> (again the links with commandline in their name).
>>
>> Currently their are only examples left to convert as well as three
>> classes containing main methods from the taste code:
>>
>> ./core/src/main/java/org/apache/mahout/cf/taste/hadoop/
>> RecommenderJob.java
>> ./core/src/main/java/org/apache/mahout/cf/taste/hadoop/
>> SlopeOneDiffsToAveragesJob.java
>> ./core/src/main/java/org/apache/mahout/cf/taste/hadoop/
>> SlopeOnePrefsToDiffsJob.java
>> ./examples/src/main/java/org/apache/mahout/cf/taste/example/
>> bookcrossing/BookCrossingRecommenderEvaluatorRunner.java
>> ./examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/
>> NetflixRecommenderEvaluatorRunner.java
>> ./examples/src/main/java/org/apache/mahout/cf/taste/example/netflix/
>> TransposeToByUser.java
>> ./examples/src/main/java/org/apache/mahout/cf/taste/example/jester/
>> JesterRecommenderEvaluatorRunner.java
>> ./examples/src/main/java/org/apache/mahout/cf/taste/example/
>> grouplens/GroupLensRecommenderEvaluatorRunner.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/dirichlet/Job.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/canopy/Job.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/canopy/InputDriver.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/kmeans/Job.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/meanshift/Job.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/meanshift/InputDriver.java
>> ./examples/src/main/java/org/apache/mahout/clustering/
>> syntheticcontrol/meanshift/OutputDriver.java
>> ./examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/tool/
>> CDInfosTool.java
>>
>>
>>
>>> Convert main() methods to use Commons CLI for argument processing
>>> -----------------------------------------------------------------
>>>
>>> Key: MAHOUT-138
>>> URL: https://issues.apache.org/jira/browse/
>>> MAHOUT-138
>>> Project: Mahout
>>> Issue Type: Improvement
>>> Affects Versions: 0.2
>>> Reporter: Grant Ingersoll
>>> Assignee: Grant Ingersoll
>>> Priority: Minor
>>> Fix For: 0.3
>>>
>>> Attachments: MAHOUT-138.patch,
>>> MAHOUT-138_fuzzyKMeansJob.patch
>>>
>>>
>>> Commons CLI is in the classpath and makes it much easier to handle
>>> command line args and they are more self-documenting when done
>>> right. We should convert our main methods to use CLI
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search