| java.lang.Object weka.classifiers.bayes.net.search.SearchAlgorithm weka.classifiers.bayes.net.search.fixed.FromFile
FromFile | public class FromFile extends SearchAlgorithm (Code) | |
The FromFile reads the structure of a Bayes net from a file in BIFF format.
Valid options are:
-B <BIF File>
Name of file containing network structure in BIF format
author: Remco Bouckaert version: $Revision: 1.7 $ |
m_sBIFFile | String m_sBIFFile(Code) | | name of file to read structure from *
|
serialVersionUID | final static long serialVersionUID(Code) | | for serialization
|
buildStructure | public void buildStructure(BayesNet bayesNet, Instances instances) throws Exception(Code) | | Parameters: bayesNet - Parameters: instances - the instances to work with throws: Exception - if attribute from BIF file could not be found |
getBIFFile | public String getBIFFile()(Code) | | Get name of network in BIF file to read structure from
BIF file name |
getOptions | public String[] getOptions()(Code) | | Gets the current settings of the search algorithm.
an array of strings suitable for passing to setOptions |
globalInfo | public String globalInfo()(Code) | | Returns a string describing this object
a description of the classifier suitable fordisplaying in the explorer/experimenter gui |
listOptions | public Enumeration listOptions()(Code) | | Returns an enumeration describing the available options.
an enumeration of all the available options. |
setBIFFile | public void setBIFFile(String sBIFFile)(Code) | | Set name of network in BIF file to read structure from
Parameters: sBIFFile - the name of the BIF file |
setOptions | public void setOptions(String[] options) throws Exception(Code) | | Parses a given list of options.
Valid options are:
-B <BIF File>
Name of file containing network structure in BIF format
Parameters: options - the list of options as an array of strings throws: Exception - if an option is not supported |
Methods inherited from weka.classifiers.bayes.net.search.SearchAlgorithm | protected boolean addArcMakesSense(BayesNet bayesNet, Instances instances, int iAttributeHead, int iAttributeTail)(Code)(Java Doc) public void buildStructure(BayesNet bayesNet, Instances instances) throws Exception(Code)(Java Doc) protected void doMarkovBlanketCorrection(BayesNet bayesNet, Instances instances)(Code)(Java Doc) protected boolean getMarkovBlanketClassifier()(Code)(Java Doc) public String[] getOptions()(Code)(Java Doc) public String initAsNaiveBayesTipText()(Code)(Java Doc) protected boolean isArc(BayesNet bayesNet, int iAttributeHead, int iAttributeTail)(Code)(Java Doc) public Enumeration listOptions()(Code)(Java Doc) protected String markovBlanketClassifierTipText()(Code)(Java Doc) public String maxNrOfParentsTipText()(Code)(Java Doc) protected boolean reverseArcMakesSense(BayesNet bayesNet, Instances instances, int iAttributeHead, int iAttributeTail)(Code)(Java Doc) protected void search(BayesNet bayesNet, Instances instances) throws Exception(Code)(Java Doc) protected void setMarkovBlanketClassifier(boolean bMarkovBlanketClassifier)(Code)(Java Doc) public void setOptions(String[] options) throws Exception(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|