public class Apriori
extends java.lang.Object
Constructor and Description |
---|
Apriori()
Default Constructor.
|
Apriori(double minpsup,
double minpconf,
double MS,
RuleBase ruleBase)
Parameters Constructor: Generates an Apriori objects from a list of parameters
|
Modifier and Type | Method and Description |
---|---|
void |
generate(myDataset train,
int[] nLabels)
Generates the Rule Base with the whole Classification Association Rules set
by using the Apriori Method.
|
public Apriori()
Default Constructor.
public Apriori(double minpsup, double minpconf, double MS, RuleBase ruleBase)
Parameters Constructor: Generates an Apriori objects from a list of parameters
minpsup
- The minimum support for the problemminpconf
- The minimum confidence for the problemMS
- Cut Threshold (MS)ruleBase
- Rule Basepublic void generate(myDataset train, int[] nLabels)
Generates the Rule Base with the whole Classification Association Rules set by using the Apriori Method.
train
- Contains the train data set with the whole information to execute the algorithmnLabels
- Array of number of labels for every attribute