[
https://issues.apache.org/jira/browse/MAHOUT-1254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13684705#comment-13684705
]
Suneel Marthi commented on MAHOUT-1254:
---------------------------------------
[~dfilimon] This code from StreamKMeansReducer doesn't compile. In addition I
would ask you to check your code for codestyle, missing license headers.
{Code}
if (conf.getBoolean(StreamingKMeansDriver.REDUCE_STREAMING_KMEANS, false)) {
intermediateCentroids = Lists.newArrayList(
new StreamingKMeansThread(Iterables.transform(centroids, new
Function<CentroidWritable, Centroid>() {
@Override
public Centroid apply(CentroidWritable input) {
Preconditions.checkNotNull(input);
return input.getCentroid();
}
}), conf).call());
} else {
intermediateCentroids = centroidWritablesToList(centroids);
}
{Code}
> Final round of cleanup for StreamingKMeans
> ------------------------------------------
>
> Key: MAHOUT-1254
> URL: https://issues.apache.org/jira/browse/MAHOUT-1254
> Project: Mahout
> Issue Type: Improvement
> Affects Versions: 0.8
> Reporter: Dan Filimon
> Assignee: Dan Filimon
> Fix For: 0.8
>
> Attachments: skm.patch
>
>
> Did a bit of tweaking on StreamingKMeans, driver, mapper and reducer to share
> more code and make it nicer.
> Need to put this in.
--
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