|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.bayes.net.search.SearchAlgorithm
weka.classifiers.bayes.net.search.fixed.FromFile
public class FromFile
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
Constructor Summary | |
---|---|
FromFile()
|
Method Summary | |
---|---|
void |
buildStructure(BayesNet bayesNet,
Instances instances)
buildStructure determines the network structure/graph of the network. |
java.lang.String |
getBIFFile()
Get name of network in BIF file to read structure from |
java.lang.String[] |
getOptions()
Gets the current settings of the search algorithm. |
java.lang.String |
getRevision()
Returns the revision string. |
java.lang.String |
globalInfo()
Returns a string describing this object |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
void |
setBIFFile(java.lang.String sBIFFile)
Set name of network in BIF file to read structure from |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
Methods inherited from class weka.classifiers.bayes.net.search.SearchAlgorithm |
---|
initAsNaiveBayesTipText, maxNrOfParentsTipText, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FromFile()
Method Detail |
---|
public java.lang.String globalInfo()
public void buildStructure(BayesNet bayesNet, Instances instances) throws java.lang.Exception
SearchAlgorithm
buildStructure
in class SearchAlgorithm
bayesNet
- instances
- the instances to work with
java.lang.Exception
- if attribute from BIF file could not be foundpublic void setBIFFile(java.lang.String sBIFFile)
sBIFFile
- the name of the BIF filepublic java.lang.String getBIFFile()
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class SearchAlgorithm
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-B <BIF File> Name of file containing network structure in BIF format
setOptions
in interface OptionHandler
setOptions
in class SearchAlgorithm
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class SearchAlgorithm
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class SearchAlgorithm
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |