netkit.classifiers
Class ClassifierImp
java.lang.Object
netkit.classifiers.ClassifierImp
- All Implemented Interfaces:
- Classifier, Configurable
- Direct Known Subclasses:
- ClassPrior, ExternalPrior, LocalMetaClassifier, LocalWeka, NetworkClassifierImp, NullPrior, UniformPrior
public abstract class ClassifierImp
- extends java.lang.Object
- implements Classifier
$Id: ClassifierImp.java,v 1.6 2007/03/26 23:45:06 sofmac Exp $
Part of the open-source Network Learning Toolkit
User: smacskassy
Date: Dec 2, 2004
Time: 9:16:44 PM
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public final java.util.logging.Logger logger
tmpVector
protected double[] tmpVector
attribute
protected AttributeCategorical attribute
nodeType
protected java.lang.String nodeType
graph
protected Graph graph
clsIdx
protected int clsIdx
vectorClsIdx
protected int vectorClsIdx
keyIndex
protected int keyIndex
right
protected int right
useIntrinsic
protected boolean useIntrinsic
classPrior
protected double[] classPrior
ClassifierImp
public ClassifierImp()
reset
public void reset()
- Specified by:
reset
in interface Classifier
getLogger
public java.util.logging.Logger getLogger()
- Specified by:
getLogger
in interface Classifier
getDefaultConfiguration
public Configuration getDefaultConfiguration()
- Specified by:
getDefaultConfiguration
in interface Configurable
configure
public void configure(Configuration config)
- Specified by:
configure
in interface Configurable
estimate
public final double[] estimate(Node node)
- Specified by:
estimate
in interface Classifier
estimate
public final boolean estimate(Node node,
Estimate result)
- Specified by:
estimate
in interface Classifier
classify
public final int classify(Node node)
- Specified by:
classify
in interface Classifier
classify
public final boolean classify(Node node,
Classification result)
- Specified by:
classify
in interface Classifier
induceModel
public void induceModel(Graph graph,
DataSplit split)
- Specified by:
induceModel
in interface Classifier
getAttributeNames
protected java.lang.String[] getAttributeNames()
makeVector
protected void makeVector(Node node,
double[] vector)
addListener
public final void addListener(ClassifierListener cl)
- Specified by:
addListener
in interface Classifier
clearListeners
public final void clearListeners()
- Specified by:
clearListeners
in interface Classifier
removeListener
public final void removeListener(ClassifierListener cl)
- Specified by:
removeListener
in interface Classifier
getNofifyListeners
public final boolean getNofifyListeners()
- Specified by:
getNofifyListeners
in interface Classifier
setNofityListeners
public final void setNofityListeners(boolean notify)
- Specified by:
setNofityListeners
in interface Classifier
notifyListeners
public final void notifyListeners(Node node,
double[] estimate)
- Specified by:
notifyListeners
in interface Classifier
notifyListeners
public final void notifyListeners(Node node,
int classification)
- Specified by:
notifyListeners
in interface Classifier