public class DMNBtext extends Classifier implements OptionHandler, WeightedInstancesHandler, TechnicalInformationHandler, UpdateableClassifier
@inproceedings{JiangSu2008,
author = {Jiang Su,Harry Zhang,Charles X. Ling,Stan Matwin},
booktitle = {ICML 2008'},
title = {Discriminative Parameter Learning for Bayesian Networks},
year = {2008}
}
Valid options are:
-I <iterations> The number of iterations that the classifier will scan the training data (default = 1)
-M Use the frequency information in data
| Modifier and Type | Class and Description |
|---|---|
class |
DMNBtext.DNBBinary |
| Constructor and Description |
|---|
DMNBtext() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(Instances data)
Generates the classifier.
|
double[] |
distributionForInstance(Instance instance)
Calculates the class membership probabilities for the given test
instance.
|
Capabilities |
getCapabilities()
Returns default capabilities of the classifier.
|
boolean |
getMultinomialWord()
Gets whether use binary text representation
|
int |
getNumIterations()
Gets the number of iterations to be performed
|
java.lang.String[] |
getOptions()
Gets the current settings of the classifier.
|
java.lang.String |
getRevision()
Returns the revision string.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
java.lang.String |
globalInfo()
Returns a string describing this classifier
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.String[] argv)
Main method for testing this class.
|
java.lang.String |
multinomialWordTipText()
Returns the tip text for this property
|
java.lang.String |
numIterationsTipText()
Returns the tip text for this property
|
void |
setMultinomialWord(boolean val)
Sets whether use binary text representation
|
void |
setNumIterations(int numIterations)
Sets the number of iterations to be performed
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
java.lang.String |
toString()
Returns a string representation of the classifier.
|
void |
updateClassifier(Instance instance)
Updates the classifier with the given instance.
|
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebugpublic java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierCapabilitiespublic void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier in class Classifierinstances - set of instances serving as training datajava.lang.Exception - if the classifier has not been generated successfullypublic void updateClassifier(Instance instance) throws java.lang.Exception
updateClassifier in interface UpdateableClassifierinstance - the new training instance to include in the modeljava.lang.Exception - if the instance could not be incorporated in
the model.public double[] distributionForInstance(Instance instance) throws java.lang.Exception
distributionForInstance in class Classifierinstance - the instance to be classifiedjava.lang.Exception - if there is a problem generating the predictionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Classifierpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
Classifier
-D
If set, classifier is run in debug mode and may output additional info to
the console.
setOptions in interface OptionHandlersetOptions in class Classifieroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Classifierpublic java.lang.String numIterationsTipText()
public void setNumIterations(int numIterations)
public int getNumIterations()
public java.lang.String multinomialWordTipText()
public void setMultinomialWord(boolean val)
public boolean getMultinomialWord()
public java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Classifierpublic static void main(java.lang.String[] argv)
argv - the options