[
https://issues.apache.org/jira/browse/MAHOUT-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170677#comment-13170677
]
Raphael Cendrillon commented on MAHOUT-904:
-------------------------------------------
At the moment this is written only to handle vectors. I'm having an issue
extending this to cover any record type. One option is to use a GenericWritable
however this could be wasteful since the classname is stored with every record.
Another approach could be to use generics, however I can't seem to use generics
in setMapOutputKeyClass(). I'd like to do something like this:
job.setMapOutputKeyClass(PairWritable<IntWritable,VectorWritable>.class);
Any suggestions would be very welcome!
> SplitInput should support randomizing the input
> -----------------------------------------------
>
> Key: MAHOUT-904
> URL: https://issues.apache.org/jira/browse/MAHOUT-904
> Project: Mahout
> Issue Type: Improvement
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Labels: MAHOUT_INTRO_CONTRIBUTE
> Attachments: MAHOUT-904.patch
>
>
> For some learning tasks, we need the input to be randomized (SGD) instead of
> blocks of labels all at once. SplitInput is a useful tool for setting up
> train/test files but it currently doesn't support randomizing the input.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira