public class Apriori
extends java.lang.Object
Constructor and Description |
---|
Apriori()
Default Constructor
|
Apriori(DataBase dataBase,
myDataset train,
double minpsup,
double minpconf,
int prune,
int limitRules)
Parameters Constructor: Generates an Apriori objects from a list of parameters
|
Modifier and Type | Method and Description |
---|---|
RuleBase |
generateCAR()
Generates the Rule Base with the whole Classification Association Rules set
by using the Apriori Method
|
void |
setSupportConfidence(double minpsup,
double minpconf)
Sets the minimum confidence and support thresholds
|
public Apriori()
Default Constructor
public Apriori(DataBase dataBase, myDataset train, double minpsup, double minpconf, int prune, int limitRules)
Parameters Constructor: Generates an Apriori objects from a list of parameters
dataBase
- Raw training information useful in the classtrain
- Contains the train data set with the whole information to execute the algorithmminpsup
- The minimum support for the problemminpconf
- The minimum confidence for the problemprune
- Value which decides whether prune or not the rule setlimitRules
- Maximum number of rules to generate (0 = no_limit)public void setSupportConfidence(double minpsup, double minpconf)
Sets the minimum confidence and support thresholds
minpsup
- The minimum support for the problemminpconf
- The minimum confidence for the problempublic RuleBase generateCAR()
Generates the Rule Base with the whole Classification Association Rules set by using the Apriori Method