org.apache.mahout.clustering.dirichlet
Class DirichletReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,DirichletCluster>
org.apache.mahout.clustering.dirichlet.DirichletReducer
public class DirichletReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,DirichletCluster>
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
cleanup, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirichletReducer
public DirichletReducer()
getNewModels
public Cluster[] getNewModels()
setup
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,DirichletCluster>
- Throws:
IOException
InterruptedException
reduce
protected void reduce(org.apache.hadoop.io.Text key,
Iterable<VectorWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,VectorWritable,org.apache.hadoop.io.Text,DirichletCluster>
- Throws:
IOException
InterruptedException
setup
public void setup(DirichletState state)
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.