public class Reducer extends Object implements IReducer
Reducer.Builder
and ReduceOp
for the full list.Uses are: (1) Reducing examples by a key (2) Reduction operations in time series (windowing ops, etc)
Modifier and Type | Class and Description |
---|---|
static class |
Reducer.Builder |
Constructor and Description |
---|
Reducer(List<String> keyColumns,
ReduceOp defaultOp,
Map<String,ReduceOp> opMap,
Map<String,ColumnReduction> customReductions,
Map<String,org.datavec.api.transform.reduce.Reducer.ConditionalReduction> conditionalReductions,
Set<String> ignoreInvalidInColumns) |
Modifier and Type | Method and Description |
---|---|
Schema |
getInputSchema() |
List<String> |
getKeyColumns() |
List<Writable> |
reduce(List<List<Writable>> examplesList) |
void |
setInputSchema(Schema schema) |
String |
toString() |
Schema |
transform(Schema schema)
Get the output schema, given the input schema
|
public void setInputSchema(Schema schema)
setInputSchema
in interface IReducer
public Schema getInputSchema()
getInputSchema
in interface IReducer
public List<String> getKeyColumns()
getKeyColumns
in interface IReducer
Copyright © 2016. All rights reserved.