public class WekaClassifierHadoopReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSIFIER_WRITE_PATH
The key in the Configuration that the write path for the model is
associated with
|
static java.lang.String |
MIN_TRAINING_FRACTION
The key in the configuration that the minimum training fraction is
associated with
|
static java.lang.String |
SUPPRESS_CLASSIFIER_TEXT_OUT
The in the configuration to check for in order to prevent textual output of
the aggregated model
|
| Constructor and Description |
|---|
WekaClassifierHadoopReducer() |
public static final java.lang.String CLASSIFIER_WRITE_PATH
public static final java.lang.String MIN_TRAINING_FRACTION
public static final java.lang.String SUPPRESS_CLASSIFIER_TEXT_OUT
public void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOExceptionpublic void reduce(org.apache.hadoop.io.Text key,
java.lang.Iterable<org.apache.hadoop.io.BytesWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>java.io.IOException