类 SearchAlgorithm

java.lang.Object
weka.classifiers.bayes.net.search.SearchAlgorithm
所有已实现的接口:
Serializable, OptionHandler, RevisionHandler
直接已知子类:
FromFile, GlobalScoreSearchAlgorithm, LocalScoreSearchAlgorithm, NaiveBayes

public class SearchAlgorithm extends Object implements OptionHandler, Serializable, 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
另请参阅:
  • 构造器详细资料

    • SearchAlgorithm

      public SearchAlgorithm()
      c'tor
  • 方法详细资料

    • listOptions

      public Enumeration listOptions()
      Returns an enumeration describing the available options.
      指定者:
      listOptions 在接口中 OptionHandler
      返回:
      an enumeration of all the available options.
    • setOptions

      public void setOptions(String[] options) throws Exception
      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

      public String[] getOptions()
      Gets the current settings of the Classifier.
      指定者:
      getOptions 在接口中 OptionHandler
      返回:
      an array of strings suitable for passing to setOptions
    • toString

      public String toString()
      a string representation of the algorithm
      覆盖:
      toString 在类中 Object
      返回:
      a string representation
    • buildStructure

      public void buildStructure(BayesNet bayesNet, Instances instances) throws Exception
      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 network
      instances - the data to use
      抛出:
      Exception - if something goes wrong
    • maxNrOfParentsTipText

      public String maxNrOfParentsTipText()
      返回:
      a string to describe the MaxNrOfParentsoption.
    • initAsNaiveBayesTipText

      public String initAsNaiveBayesTipText()
      返回:
      a string to describe the InitAsNaiveBayes option.
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision