|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetkit.classifiers.ClassifierImp
netkit.classifiers.nonrelational.ExternalPrior
public final class ExternalPrior
This classifier reads in estimates from a user-specified file. It uses a ReadEstimate object
to read estimates from a file. It uses a Factory to get a ReadEstimate object. This factory
is initialized from the readestimate.properties file.
The classifier itself has two properties (read from lclassifier.properties or
specified from the commandline):
| Field Summary |
|---|
| Fields inherited from class netkit.classifiers.ClassifierImp |
|---|
attribute, classPrior, clsIdx, graph, keyIndex, logger, nodeType, right, tmpVector, useIntrinsic, vectorClsIdx |
| Constructor Summary | |
|---|---|
ExternalPrior()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration config)
Configure this classifier using the passed-in configuration. |
boolean |
estimate(Node node,
double[] result)
Estimate class probabilities for the given node--returns the read in estimates. |
Configuration |
getDefaultConfiguration()
Sets a default configuration where the reader is of type 'rainbow', which should resolve to the ReadEstimateRainbow class in the 'readestimate.properties' file. |
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
java.lang.String |
getShortName()
|
void |
induceModel(Graph graph,
DataSplit split)
Inducing this model simply means to read the estimates from the input file. |
java.lang.String |
toString()
|
| Methods inherited from class netkit.classifiers.ClassifierImp |
|---|
addListener, classify, classify, clearListeners, estimate, estimate, getAttributeNames, getLogger, getNofifyListeners, 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 |
|---|
public ExternalPrior()
| Method Detail |
|---|
public java.lang.String getShortName()
public java.lang.String getName()
public java.lang.String getDescription()
public Configuration getDefaultConfiguration()
getDefaultConfiguration in interface ConfigurablegetDefaultConfiguration in class ClassifierImpReadEstimateRainbowpublic void configure(Configuration config)
configure in interface Configurableconfigure in class ClassifierImpconfig - The configuration object to use to configure this classifier
public void induceModel(Graph graph,
DataSplit split)
induceModel in interface ClassifierinduceModel in class ClassifierImpgraph - Graph whose nodes are to be estimatedsplit - The split between training and test. Used to get the nodetype and class attribute.
public boolean estimate(Node node,
double[] result)
node - The node to estimate class probabilities forresult - the double array containing the probability estimates that the node belongs to each
of the possible class labels.
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||