Package org.datavec.api.transform.filter
Class BaseColumnFilter
- java.lang.Object
-
- org.datavec.api.transform.filter.BaseColumnFilter
-
public abstract class BaseColumnFilter extends Object implements Filter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseColumnFilter(String column)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
removeExample(List<Writable> writables)
abstract boolean
removeExample(Writable writable)
Should the example or sequence be removed, based on the values from the specified column?boolean
removeSequence(List<List<Writable>> sequence)
void
setInputSchema(Schema schema)
Set the input schema.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datavec.api.transform.ColumnOp
columnName, columnNames, outputColumnName, outputColumnNames
-
Methods inherited from interface org.datavec.api.transform.filter.Filter
getInputSchema, removeExample, removeSequence
-
-
-
-
Constructor Detail
-
BaseColumnFilter
protected BaseColumnFilter(String column)
-
-
Method Detail
-
removeExample
public boolean removeExample(List<Writable> writables)
- Specified by:
removeExample
in interfaceFilter
- Parameters:
writables
- Example- Returns:
- true if example should be removed, false to keep
-
removeSequence
public boolean removeSequence(List<List<Writable>> sequence)
- Specified by:
removeSequence
in interfaceFilter
- Parameters:
sequence
- sequence example- Returns:
- true if example should be removed, false to keep
-
setInputSchema
public void setInputSchema(Schema schema)
Description copied from interface:ColumnOp
Set the input schema.- Specified by:
setInputSchema
in interfaceColumnOp
- Specified by:
setInputSchema
in interfaceFilter
-
removeExample
public abstract boolean removeExample(Writable writable)
Should the example or sequence be removed, based on the values from the specified column?
-
-