类 FromFile

java.lang.Object
weka.classifiers.bayes.net.search.SearchAlgorithm
weka.classifiers.bayes.net.search.fixed.FromFile
所有已实现的接口:
Serializable, OptionHandler, RevisionHandler

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

    • FromFile

      public FromFile()
  • 方法详细资料

    • globalInfo

      public String globalInfo()
      Returns a string describing this object
      返回:
      a description of the classifier suitable for displaying in the explorer/experimenter gui
    • buildStructure

      public void buildStructure(BayesNet bayesNet, Instances instances) throws Exception
      从类复制的说明: 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

      public void setBIFFile(String sBIFFile)
      Set name of network in BIF file to read structure from
      参数:
      sBIFFile - the name of the BIF file
    • getBIFFile

      public String getBIFFile()
      Get name of network in BIF file to read structure from
      返回:
      BIF file name
    • listOptions

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

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

      public String[] getOptions()
      Gets the current settings of the search algorithm.
      指定者:
      getOptions 在接口中 OptionHandler
      覆盖:
      getOptions 在类中 SearchAlgorithm
      返回:
      an array of strings suitable for passing to setOptions
    • getRevision

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