类 ADNode
java.lang.Object
weka.classifiers.bayes.net.ADNode
- 所有已实现的接口:
Serializable
,RevisionHandler
,TechnicalInformationHandler
public class ADNode
extends Object
implements Serializable, TechnicalInformationHandler, RevisionHandler
The ADNode class implements the ADTree datastructure which increases
the speed with which sub-contingency tables can be constructed from
a data set in an Instances object. For details, see:
Andrew W. Moore, Mary S. Lee (1998). Cached Sufficient Statistics for Efficient Machine Learning with Large Datasets. Journal of Artificial Intelligence Research. 8:67-91.
BibTeX:
@article{Moore1998, author = {Andrew W. Moore and Mary S. Lee}, journal = {Journal of Artificial Intelligence Research}, pages = {67-91}, title = {Cached Sufficient Statistics for Efficient Machine Learning with Large Datasets}, volume = {8}, year = {1998} }
- 版本:
- $Revision: 1.7 $
- 作者:
- Remco Bouckaert (rrb@xm.co.nz)
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
getCounts
(int[] nCounts, int[] nNodes, int[] nOffsets, int iNode, int iOffset, boolean bSubstract) get counts for specific instantiation of a set of nodesReturns the revision string.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.static void
for testing onlystatic ADNode
makeADTree
(int iNode, FastVector nRecords, Instances instances) create sub treestatic ADNode
makeADTree
(Instances instances) create AD tree from set of instancesstatic VaryNode
makeVaryNode
(int iNode, FastVector nRecords, Instances instances) create sub treevoid
print()
print is used for debugging only and shows the ADTree in ASCII graphics
-
字段详细资料
-
m_VaryNodes
list of VaryNode children -
m_Instances
list of Instance children (either m_Instances or m_VaryNodes is instantiated) -
m_nCount
public int m_nCountcount -
m_nStartNode
public int m_nStartNodefirst node in VaryNode array
-
-
构造器详细资料
-
ADNode
public ADNode()Creates new ADNode
-
-
方法详细资料
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
makeVaryNode
create sub tree- 参数:
iNode
- index of the lowest node in the treenRecords
- set of records in instances to be consideredinstances
- data set- 返回:
- VaryNode representing part of an ADTree
-
makeADTree
create sub tree- 参数:
iNode
- index of the lowest node in the treenRecords
- set of records in instances to be consideredinstances
- data set- 返回:
- ADNode representing an ADTree
-
makeADTree
create AD tree from set of instances- 参数:
instances
- data set- 返回:
- ADNode representing an ADTree
-
getCounts
public void getCounts(int[] nCounts, int[] nNodes, int[] nOffsets, int iNode, int iOffset, boolean bSubstract) get counts for specific instantiation of a set of nodes- 参数:
nCounts
- - array for storing countsnNodes
- - array of node indexesnOffsets
- - offset for nodes in nNodes in nCountsiNode
- - index into nNode indicating current nodeiOffset
- - Offset into nCounts due to nodes below iNodebSubstract
- - indicate whether counts should be added or substracted
-
print
public void print()print is used for debugging only and shows the ADTree in ASCII graphics -
main
for testing only- 参数:
argv
- the commandline options
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-