|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NetworkClassifier
Interface for a relational classifier in addition to those of a nonrelational classifier.
Method Summary | |
---|---|
int |
classify(Node node,
Estimate prior,
boolean updatePrior)
Classify a given node into one of the given classes. |
double[] |
estimate(Node node,
Estimate prior,
boolean updatePrior)
Estimate the probabilities that a given node into belongs to any given class It may use the class estimations of other nodes and may update the prior of the given node. |
boolean |
estimate(Node node,
Estimate prior,
double[] result,
boolean updatePrior)
Estimate the probabilities that a given node into belongs to any given class It may use the class estimations of other nodes and may update the prior of the given node. |
boolean |
estimate(Node node,
Estimate prior,
Estimate result,
boolean updatePrior)
Estimate the probabilities that a given node into belongs to any given class It may use the class estimations of other nodes and may update the prior of the given node. |
void |
initializeRun(Estimate currPrior,
Node[] unknowns)
This is called prior to predicting labels for the unknown labels in the graph, in case the classifier needs to initialize itself. |
Methods inherited from interface netkit.classifiers.Classifier |
---|
addListener, classify, classify, clearListeners, estimate, estimate, estimate, getDescription, getLogger, getName, getNofifyListeners, getShortName, induceModel, notifyListeners, notifyListeners, removeListener, reset, setNofityListeners |
Methods inherited from interface netkit.util.Configurable |
---|
configure, getDefaultConfiguration |
Method Detail |
---|
void initializeRun(Estimate currPrior, Node[] unknowns)
currPrior
- The current 'priors' or estimates of the unknown lablesunknowns
- The list of nodes which are to be predicted in the upcoming run.int classify(Node node, Estimate prior, boolean updatePrior)
node
- The node to classify.prior
- The current class estimates of all initially unknown nodes.updatePrior
- Whether the classifier should update the prior of the node that it classifies. If true, then the
prior object is updated with the predicted classification.
boolean estimate(Node node, Estimate prior, double[] result, boolean updatePrior)
node
- The node to estimate.prior
- The current class estimates of all initially unknown nodes.result
- The array that is filled in with class estimatesupdatePrior
- Whether the classifier should update the prior of the node that it classifies. If true, then the
prior object is updated with the new estimates.
double[] estimate(Node node, Estimate prior, boolean updatePrior)
node
- The node to estimate.prior
- The current class estimates of all initially unknown nodes.updatePrior
- Whether the classifier should update the prior of the node that it classifies. If true, then the
prior object is updated with the new estimates.
null
is the classifier abstainsboolean estimate(Node node, Estimate prior, Estimate result, boolean updatePrior)
node
- The node to estimate.prior
- The current class estimates of all initially unknown nodes.result
- The Estimate object that is updated with class estimates.updatePrior
- Whether the classifier should update the prior of the node that it classifies. If true, then the
prior object is updated with the new estimates.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |