类 BayesNetGenerator
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.bayes.BayesNet
weka.classifiers.bayes.net.EditableBayesNet
weka.classifiers.bayes.net.BayesNetGenerator
- 所有已实现的接口:
Serializable
,Cloneable
,AdditionalMeasureProducer
,CapabilitiesHandler
,Drawable
,OptionHandler
,RevisionHandler
,WeightedInstancesHandler
Bayes Network learning using various search algorithms and quality measures.
Base class for a Bayes Network classifier. Provides datastructures (network structure, conditional probability distributions, etc.) and facilities common to Bayes Network learning algorithms like K2 and B.
For more information see:
http://www.cs.waikato.ac.nz/~remco/weka.pdf Valid options are:
Base class for a Bayes Network classifier. Provides datastructures (network structure, conditional probability distributions, etc.) and facilities common to Bayes Network learning algorithms like K2 and B.
For more information see:
http://www.cs.waikato.ac.nz/~remco/weka.pdf Valid options are:
-B Generate network (instead of instances)
-N <integer> Nr of nodes
-A <integer> Nr of arcs
-M <integer> Nr of instances
-C <integer> Cardinality of the variables
-S <integer> Seed for random number generator
-F <file> The BIF file to obtain the structure from.
- 版本:
- $Revision: 1.14 $
- 作者:
- Remco Bouckaert (rrb@xm.co.nz)
- 另请参阅:
-
字段概要
从类继承的字段 weka.classifiers.bayes.BayesNet
m_Distributions, m_Instances
从接口继承的字段 weka.core.Drawable
BayesNet, Newick, NOT_DRAWABLE, TREE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
GenerateInstances generates random instances sampling from the distribution represented by the Bayes network structure.void
Generate random connected Bayesian network with discrete nodes having all the same cardinality.void
generateRandomNetworkStructure
(int nNodes, int nArcs) GenerateRandomNetworkStructure generate random connected Bayesian networkString[]
Gets the current settings of the classifier.Returns the revision string.void
Init
(int nNodes, int nValues) Init defines a minimal Bayes net with no arcsReturns an enumeration describing the available optionsstatic void
Main methodvoid
setOptions
(String[] options) Parses a given list of options.toString()
Returns either the net (if BIF format) or the generated instances从类继承的方法 weka.classifiers.bayes.net.EditableBayesNet
addArc, addArc, addArc, addNode, addNode, addNodeValue, alignBottom, alignLeft, alignRight, alignTop, canRedo, canUndo, centerHorizontal, centerVertical, clearUndoStack, deleteArc, deleteArc, deleteNode, deleteNode, deleteSelection, delNodeValue, getChildren, getContent, getDistribution, getDistribution, getEvidence, getMargin, getNode, getNode2, getPositionX, getPositionY, getValueName, getValues, getValues, isChanged, isSaved, lastActionMsg, layoutGraph, paste, redo, renameNodeValue, setData, setDistribution, setDistribution, setEvidence, setMargin, setNodeName, setPosition, setPosition, spaceHorizontal, spaceVertical, toXMLBIF03, toXMLBIF03, undo
从类继承的方法 weka.classifiers.bayes.BayesNet
BIFFileTipText, buildClassifier, buildStructure, countsForInstance, distributionForInstance, enumerateMeasures, estimateCPTs, estimatorTipText, getADTree, getBIFFile, getBIFHeader, getCapabilities, getCardinality, getDistributions, getEstimator, getMeasure, getName, getNodeName, getNodeValue, getNrOfNodes, getNrOfParents, getParent, getParentCardinality, getParentSet, getParentSets, getProbability, getSearchAlgorithm, getUseADTree, globalInfo, graph, graphType, initCPTs, initStructure, measureAICScore, measureBayesScore, measureBDeuScore, measureDivergence, measureEntropyScore, measureExtraArcs, measureMDLScore, measureMissingArcs, measureReversedArcs, partitionOptions, searchAlgorithmTipText, setBIFFile, setEstimator, setSearchAlgorithm, setUseADTree, updateClassifier, useADTreeTipText
从类继承的方法 weka.classifiers.Classifier
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
BayesNetGenerator
public BayesNetGenerator()Constructor for BayesNetGenerator.
-
-
方法详细资料
-
generateRandomNetwork
Generate random connected Bayesian network with discrete nodes having all the same cardinality.- 抛出:
Exception
- if something goes wrong
-
Init
Init defines a minimal Bayes net with no arcs- 参数:
nNodes
- number of nodes in the Bayes netnValues
- number of values each of the nodes can take- 抛出:
Exception
- if something goes wrong
-
generateRandomNetworkStructure
GenerateRandomNetworkStructure generate random connected Bayesian network- 参数:
nNodes
- number of nodes in the Bayes net to generatenArcs
- number of arcs to generate. Must be between nNodes - 1 and nNodes * (nNodes-1) / 2- 抛出:
Exception
- if number of arcs is incorrect
-
generateInstances
GenerateInstances generates random instances sampling from the distribution represented by the Bayes network structure. It assumes a Bayes network structure has been initialized- 抛出:
Exception
- if something goes wrong
-
toString
Returns either the net (if BIF format) or the generated instances -
listOptions
Returns an enumeration describing the available options- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中BayesNet
- 返回:
- an enumeration of all the available options
-
setOptions
Parses a given list of options. Valid options are:-B Generate network (instead of instances)
-N <integer> Nr of nodes
-A <integer> Nr of arcs
-M <integer> Nr of instances
-C <integer> Cardinality of the variables
-S <integer> Seed for random number generator
-F <file> The BIF file to obtain the structure from.
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中BayesNet
- 参数:
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
- 覆盖:
getOptions
在类中BayesNet
- 返回:
- an array of strings suitable for passing to setOptions
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中EditableBayesNet
- 返回:
- the revision
-
main
Main method- 参数:
args
- the commandline parameters
-