类 SearchAlgorithm
java.lang.Object
weka.classifiers.bayes.net.search.SearchAlgorithm
- 所有已实现的接口:
Serializable
,OptionHandler
,RevisionHandler
This is the base class for all search algorithms for learning Bayes networks.
It contains some common code, used by other network structure search algorithms,
and should not be used by itself.
- 版本:
- $Revision: 1.9 $
- 作者:
- Remco Bouckaert
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildStructure
(BayesNet bayesNet, Instances instances) buildStructure determines the network structure/graph of the network.String[]
Gets the current settings of the Classifier.Returns the revision string.Returns an enumeration describing the available options.void
setOptions
(String[] options) Parses a given list of options.toString()
a string representation of the algorithm
-
构造器详细资料
-
SearchAlgorithm
public SearchAlgorithm()c'tor
-
-
方法详细资料
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a given list of options.- 指定者:
setOptions
在接口中OptionHandler
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the Classifier.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions
-
toString
a string representation of the algorithm -
buildStructure
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.- 参数:
bayesNet
- the networkinstances
- the data to use- 抛出:
Exception
- if something goes wrong
-
maxNrOfParentsTipText
- 返回:
- a string to describe the MaxNrOfParentsoption.
-
initAsNaiveBayesTipText
- 返回:
- a string to describe the InitAsNaiveBayes option.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-