public class ReLUFilter extends AbstractStreamFilter
Modifier and Type | Field and Description |
---|---|
protected InstancesHeader |
dataset |
IntOption |
numLatentOption |
protected Random |
random |
IntOption |
randomSeedOption |
protected double[][] |
W |
inputStream
config
Constructor and Description |
---|
ReLUFilter() |
Modifier and Type | Method and Description |
---|---|
Instance |
filterInstance(Instance x)
Filter an instance.
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
InstancesHeader |
getHeader()
Gets the header of this stream.
|
String |
getPurposeString()
Dictionary with option texts and objects
|
protected void |
restartImpl()
Restarts this filter.
|
estimatedRemainingInstances, hasMoreInstances, isRestartable, nextInstance, prepareForUseImpl, restart, setInputStream
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
protected InstancesHeader dataset
public IntOption randomSeedOption
public IntOption numLatentOption
protected Random random
protected double[][] W
public String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
public InstancesHeader getHeader()
ExampleStream
public Instance filterInstance(Instance x)
filterInstance
in interface StreamFilter
filterInstance
in class AbstractStreamFilter
x
- input instanceprotected void restartImpl()
AbstractStreamFilter
AbstractStreamFilter
must implement restartImpl
.
restart
uses restartImpl
in AbstractStreamFilter
.restartImpl
in class AbstractStreamFilter
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.