public class FromFile extends SearchAlgorithm
-B <BIF File> Name of file containing network structure in BIF format
Constructor and Description |
---|
FromFile() |
Modifier and Type | Method and Description |
---|---|
void |
buildStructure(BayesNet bayesNet,
Instances instances)
buildStructure determines the network structure/graph of the network.
|
String |
getBIFFile()
Get name of network in BIF file to read structure from
|
String[] |
getOptions()
Gets the current settings of the search algorithm.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this object
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
void |
setBIFFile(String sBIFFile)
Set name of network in BIF file to read structure from
|
void |
setOptions(String[] options)
Parses a given list of options.
|
initAsNaiveBayesTipText, maxNrOfParentsTipText, toString
public String globalInfo()
public void buildStructure(BayesNet bayesNet, Instances instances) throws Exception
SearchAlgorithm
buildStructure
in class SearchAlgorithm
bayesNet
- instances
- the instances to work withException
- if attribute from BIF file could not be foundpublic void setBIFFile(String sBIFFile)
sBIFFile
- the name of the BIF filepublic String getBIFFile()
public Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class SearchAlgorithm
public void setOptions(String[] options) throws 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 stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class SearchAlgorithm
public String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class SearchAlgorithm
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.