netkit.classifiers.nonrelational
Class NullPrior

java.lang.Object
  extended by netkit.classifiers.ClassifierImp
      extended by 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)

Field Summary
 
Fields inherited from class netkit.classifiers.ClassifierImp
attribute, classPrior, clsIdx, graph, keyIndex, logger, nodeType, right, tmpVector, useIntrinsic, vectorClsIdx
 
Constructor Summary
NullPrior()
           
 
Method Summary
 boolean estimate(Node node, double[] result)
          Estimate the probabilities that a given node into belongs to any given class.
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.lang.String getShortName()
           
 java.lang.String toString()
           
 
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
 

Constructor Detail

NullPrior

public NullPrior()
Method Detail

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 predictions
result - 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