接口 CARuleMiner
- 所有超级接口:
OptionHandler
- 所有已知实现类:
Apriori
,PredictiveApriori
Interface for learning class association rules. All schemes for learning
class association rules implemement this interface.
- 版本:
- $Revision: 1.3 $
- 作者:
- Stefan Mutter (mutter@cs.waikato.ac.nz)
-
方法概要
修饰符和类型方法说明Gets the instances without the class attributeGets the class attribute and its values for all instancesGets name of the scoring metric used for car miningMethod for mining class association rules.void
setClassIndex
(int index) Sets the class index for the class association rule miner从接口继承的方法 weka.core.OptionHandler
getOptions, listOptions, setOptions
-
方法详细资料
-
mineCARs
Method for mining class association rules. Must initialize all fields of the CARuleMiner that are not being set via options (ie. multiple calls of mineCARs must always lead to the same result). Must not change the dataset in any way.- 参数:
data
- the insatnces for which class association rules are mined- 返回:
- class association rules and their scoring metric in an FastVector array
- 抛出:
Exception
- throws exception if class association rules cannot be mined
-
getInstancesNoClass
Instances getInstancesNoClass()Gets the instances without the class attribute- 返回:
- the instances withoput the class attribute
-
getInstancesOnlyClass
Instances getInstancesOnlyClass()Gets the class attribute and its values for all instances- 返回:
- the class attribute and its values for all instances
-
metricString
String metricString()Gets name of the scoring metric used for car mining- 返回:
- string containing the name of the scoring metric
-
setClassIndex
void setClassIndex(int index) Sets the class index for the class association rule miner- 参数:
index
- the class index
-