Alatasetal_A | R Documentation |
Alatasetal_A Association Rules Algorithm from KEEL.
Alatasetal_A(dat, seed, NumberofEvaluations, InitialRandomChromosomes,
rDividingPoints, TournamentSize, ProbabilityofCrossover,
MinimumProbabilityofMutation, MaximumProbabilityofMutation,
ImportanceofRulesSupport, ImportanceofRulesConfidence,
ImportanceofNumberofInvolvedAttributes, ImportanceofIntervalsAmplitude,
ImportanceofNumberofRecordsAlreadyCovered, AmplitudeFactor)
dat |
Dataset as a data.frame object |
seed |
seed. Default value = 1286082570 |
NumberofEvaluations |
NumberofEvaluations. Default value = 50000 |
InitialRandomChromosomes |
Initial Random Chromosomes. Default value = 12 |
rDividingPoints |
r-Dividing Points. Default value = 3 |
TournamentSize |
TournamentSize. Default value = 10 |
ProbabilityofCrossover |
Probability of Crossover. Default value = 0.7 |
MinimumProbabilityofMutation |
Minimum Probability of Mutation. Default value = 0.05 |
MaximumProbabilityofMutation |
Maximum Probability of Mutation. Default value = 0.9 |
ImportanceofRulesSupport |
Importance of Rules Support. Default value = 5 |
ImportanceofRulesConfidence |
Importance of Rules Confidence. Default value = 20 |
ImportanceofNumberofInvolvedAttributes |
Importance of Number of Involved Attributes. Default value = 0.05 |
ImportanceofIntervalsAmplitude |
Importance of Intervals Amplitude. Default value = 0.02 |
ImportanceofNumberofRecordsAlreadyCovered |
Importance of Number of Records Already Covered. Default value = 0.01 |
AmplitudeFactor |
Amplitude Factor. Default value = 2.0 |
$run()
Run algorith
$showRules(numRules)
Show a number of rules. By default all rules.
$getInterestMeasures()
Return a data.frame with all interest measures of set rules.
$sortBy(interestMeasure)
Order set rules by interest measure.
$writeCSV(fileName, sep)
Create CSV file with set rules. Default fileName="rules" sep=","
$writePMML(fileName)
Create PMML file with set rules. Default fileName="rules"
$addInterestMeasure(name, colName)
Add interest measures to set rules. Some interest measures supported:
"allConfidence" (Omiencinski, 2003)
"crossSupportRatio", cross-support ratio (Xiong et al., 2003)
"lift", interest factor (Brin et al. 1997)
"support", supp (Agrawal et al., 1996)
"addedValue", added Value, AV, Pavillon index, centered confidence (Tan et al., 2002)
"chiSquared", X^2 (Liu et al., 1999)
"certainty", certainty factor, CF, Loevinger (Berzal et al., 2002)
"collectiveStrength"
"confidence", conf (Agrawal et al., 1996)
"conviction" (Brin et al. 1997)
"cosine" (Tan et al., 2004)
"coverage", cover, LHS-support
"confirmedConfidence", descriptive confirmed confidence (Kodratoff, 1999)
"casualConfidence", casual confidence (Kodratoff, 1999)
"casualSupport", casual support (Kodratoff, 1999)
"counterexample", example and counterexample rate
"descriptiveConfirm", descriptive-confirm (Kodratoff, 1999)
"doc", difference of confidence (Hofmann and Wilhelm, 2001)
"fishersExactTest", Fisher's exact test (Hahsler and Hornik, 2007)
"gini", Gini index (Tan et al., 2004)
"hyperLift" (Hahsler and Hornik, 2007)
"hyperConfidence" (Hahsler and Hornik, 2007)
"imbalance", imbalance ratio, IR (Wu, Chen and Han, 2010)
"implicationIndex", implication index (Gras, 1996)
"improvement" (Bayardo et al., 2000)
"jaccard", Jaccard coefficient (Tan and Kumar, 2000)
"jMeasure", J-measure, J (Smyth and Goodman, 1991)
"kappa" (Tan and Kumar, 2000)
"klosgen", Klosgen (Tan and Kumar, 2000)
"kulczynski" (Wu, Chen and Han, 2007; Kulczynski, 1927)
"lambda", Goodman-Kruskal lambda, predictive association (Tan and Kumar, 2000)
"laplace", L (Tan and Kumar 2000)
"leastContradiction", least contradiction (Aze and Kodratoff, 2004
"lerman", Lerman similarity (Lerman, 1981)
"leverage", PS (Piatetsky-Shapiro 1991)
"mutualInformation", uncertainty, M (Tan et al., 2002)
"oddsRatio", odds ratio alpha (Tan et al., 2004)
"phi", correlation coefficient phi (Tan et al. 2004)
"ralambrodrainy", Ralambrodrainy Measure (Ralambrodrainy, 1991)
"RLD", relative linkage disequilibrium (Kenett and Salini, 2008)
"sebag", Sebag measure (Sebag and Schoenauer, 1988)
"support", supp (Agrawal et al., 1996)
"varyingLiaison", varying rates liaison (Bernard and Charron, 1996)
"yuleQ", Yule's Q (Tan and Kumar, 2000)
"yuleY", Yule's Y (Tan and Kumar, 2000)
For more information see ?arules::interestMeasure
A arules class with the Association Rules for both dat
dataset.
#Load KEEL dataset
dat<-RKEEL::loadKeelDataset("car")
#Create algorithm
algorithm <- RKEEL::Alatasetal_A(dat)
#Run algorithm
algorithm$run()
#Rules in format arules
algorithm$rules
#Show a number of rules
algorithm$showRules(2)
#Return a data.frame with all interest measures of set rules
algorithm$getInterestMeasures()
#Add interst measure YuleY to set rules
algorithm$addInterestMeasure("YuleY","yulesY")
#Sort by interest measure lift
algorithm$sortBy("lift")
#Save rules in CSV file
algorithm$writeCSV(paste0(tempdir(), "/myrules"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.