netkit.classifiers.nonrelational
Class NullPrior
java.lang.Object
netkit.classifiers.ClassifierImp
netkit.classifiers.nonrelational.NullPrior
- All Implemented Interfaces:
- Classifier, Configurable
public final class NullPrior
- extends ClassifierImp
Predict nothing. Useful to initialize predictions in some circumstances (such as for the
Iterative Classification Algorithm).
- Author:
- Sofus A. Macskassy (sofmac@gmail.com)
Fields inherited from class netkit.classifiers.ClassifierImp |
attribute, classPrior, clsIdx, graph, keyIndex, logger, nodeType, right, tmpVector, useIntrinsic, vectorClsIdx |
Methods inherited from class netkit.classifiers.ClassifierImp |
addListener, classify, classify, clearListeners, configure, estimate, estimate, getAttributeNames, getDefaultConfiguration, getLogger, getNofifyListeners, induceModel, makeVector, notifyListeners, notifyListeners, removeListener, reset, setNofityListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullPrior
public NullPrior()
getShortName
public java.lang.String getShortName()
- Returns:
- 'NullPrior'
getName
public java.lang.String getName()
- Returns:
- 'NullPrior'
getDescription
public java.lang.String getDescription()
- Returns:
- a short description of this class.
estimate
public boolean estimate(Node node,
double[] result)
- Description copied from interface:
Classifier
- Estimate the probabilities that a given node into belongs to any given class.
- Parameters:
node
- The node for which to make predictionsresult
- The array to fill with the predictions---this is filled with the class marginals from the training set
- Returns:
- false (meaning that it did not really make a prediction)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object