类 FromFile
java.lang.Object
weka.classifiers.bayes.net.search.SearchAlgorithm
weka.classifiers.bayes.net.search.fixed.FromFile
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
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
- 版本:
- $Revision: 1.8 $
- 作者:
- Remco Bouckaert
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildStructure
(BayesNet bayesNet, Instances instances) buildStructure determines the network structure/graph of the network.Get name of network in BIF file to read structure fromString[]
Gets the current settings of the search algorithm.Returns the revision string.Returns a string describing this objectReturns an enumeration describing the available options.void
setBIFFile
(String sBIFFile) Set name of network in BIF file to read structure fromvoid
setOptions
(String[] options) Parses a given list of options.从类继承的方法 weka.classifiers.bayes.net.search.SearchAlgorithm
initAsNaiveBayesTipText, maxNrOfParentsTipText, toString
-
构造器详细资料
-
FromFile
public FromFile()
-
-
方法详细资料
-
globalInfo
Returns a string describing this object- 返回:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
buildStructure
从类复制的说明:SearchAlgorithm
buildStructure determines the network structure/graph of the network. The default behavior is creating a network where all nodes have the first node as its parent (i.e., a BayesNet that behaves like a naive Bayes classifier). This method can be overridden by derived classes to restrict the class of network structures that are acceptable.- 覆盖:
buildStructure
在类中SearchAlgorithm
- 参数:
bayesNet
-instances
- the instances to work with- 抛出:
Exception
- if attribute from BIF file could not be found
-
setBIFFile
Set name of network in BIF file to read structure from- 参数:
sBIFFile
- the name of the BIF file
-
getBIFFile
Get name of network in BIF file to read structure from- 返回:
- BIF file name
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SearchAlgorithm
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options. Valid options are:-B <BIF File> Name of file containing network structure in BIF format
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中SearchAlgorithm
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the search algorithm.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SearchAlgorithm
- 返回:
- an array of strings suitable for passing to setOptions
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中SearchAlgorithm
- 返回:
- the revision
-