wGmdh.jGmdh.oldskul
Class NodeFilter

java.lang.Object
  extended by wGmdh.jGmdh.oldskul.NodeFilter
All Implemented Interfaces:
java.io.Serializable, weka.core.OptionHandler
Direct Known Subclasses:
SlidingFilter

public abstract class NodeFilter
extends java.lang.Object
implements java.io.Serializable, weka.core.OptionHandler

The idea is to pass every Model and Node you have in consideration for building upper-layer models to this filter class and use its (reduced) output to build them

See Also:
Serialized Form

Field Summary
protected  DatasetSupervised dataset
          DatasetSupervised models have been built on
 
Constructor Summary
NodeFilter()
           
 
Method Summary
abstract  Node feed(Node newNode)
          Present filter with a Node it needs to process.
 boolean getDebug()
           
 java.lang.String[] getOptions()
           
abstract  java.util.ArrayList<Node> getResult()
          Obtain results once you're done with feeding the filter
abstract  java.util.ArrayList<Model> getSortedModels()
          It's useful to have all models that have been presented to us at disposal, furthermore sorted
 void initialize(DatasetSupervised dataset)
          Filter initialization
 java.util.Enumeration listOptions()
           
 void reset()
          Resets filter state, e.g. when you want to start filtering a new layer.
 void setDebug(boolean b)
           
 void setOptions(java.lang.String[] options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataset

protected DatasetSupervised dataset
DatasetSupervised models have been built on

Constructor Detail

NodeFilter

public NodeFilter()
Method Detail

feed

public abstract Node feed(Node newNode)
Present filter with a Node it needs to process.

Parameters:
newNode -
Returns:

getResult

public abstract java.util.ArrayList<Node> getResult()
Obtain results once you're done with feeding the filter

Returns:

initialize

public void initialize(DatasetSupervised dataset)
Filter initialization

Parameters:
dataset - dataset models have been build upon

reset

public void reset()
Resets filter state, e.g. when you want to start filtering a new layer.


setOptions

public void setOptions(java.lang.String[] options)
                throws java.lang.Exception
Specified by:
setOptions in interface weka.core.OptionHandler
Parameters:
options -
Throws:
java.lang.Exception

getOptions

public java.lang.String[] getOptions()
Specified by:
getOptions in interface weka.core.OptionHandler

listOptions

public java.util.Enumeration listOptions()
Specified by:
listOptions in interface weka.core.OptionHandler

setDebug

public void setDebug(boolean b)

getDebug

public boolean getDebug()

getSortedModels

public abstract java.util.ArrayList<Model> getSortedModels()
It's useful to have all models that have been presented to us at disposal, furthermore sorted

Returns:
sorted models