org.apache.mahout.math.stats.entropy
Class CalculateEntropyReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable>
org.apache.mahout.math.stats.entropy.CalculateEntropyReducer
public final class CalculateEntropyReducer
- extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable>
Subtracts the partial entropy.
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
Method Summary |
protected void |
reduce(org.apache.hadoop.io.NullWritable key,
Iterable<org.apache.hadoop.io.DoubleWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
|
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context 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 |
CalculateEntropyReducer
public CalculateEntropyReducer()
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.NullWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable>
- Throws:
IOException
InterruptedException
reduce
protected void reduce(org.apache.hadoop.io.NullWritable key,
Iterable<org.apache.hadoop.io.DoubleWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.DoubleWritable>
- Throws:
IOException
InterruptedException
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.