Package weka.classifiers
Class ScriptedClassifierUtils.InitObserver
- java.lang.Object
-
- weka.classifiers.ScriptedClassifierUtils.InitObserver
-
- All Implemented Interfaces:
PropertyTraversal.Observer
- Enclosing class:
- ScriptedClassifierUtils
public static class ScriptedClassifierUtils.InitObserver extends Object implements PropertyTraversal.Observer
Observer that initializes for prediction.
-
-
Field Summary
Fields Modifier and Type Field Description protected Actor
m_Context
the context to use.protected int
m_Initializations
the number of initializations that took place.
-
Constructor Summary
Constructors Constructor Description InitObserver(Actor context)
Initializes the observer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInitializations()
Returns the number of updates.boolean
observe(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)
Presents the current path, descriptor and object to the observer.
-
-
-
Field Detail
-
m_Context
protected Actor m_Context
the context to use.
-
m_Initializations
protected int m_Initializations
the number of initializations that took place.
-
-
Constructor Detail
-
InitObserver
public InitObserver(Actor context)
Initializes the observer.- Parameters:
context
- the context to set
-
-
Method Detail
-
observe
public boolean observe(PropertyPath.Path path, PropertyDescriptor desc, Object parent, Object child)
Presents the current path, descriptor and object to the observer.- Specified by:
observe
in interfacePropertyTraversal.Observer
- Parameters:
path
- the pathdesc
- the property descriptorparent
- the parent objectchild
- the child object- Returns:
- true if to continue observing
-
getInitializations
public int getInitializations()
Returns the number of updates.- Returns:
- the updates
-
-