public class ARMMGAProcess
extends java.lang.Object
It provides the implementation of the ARMMGA algorithm to be run in a process
Constructor and Description |
---|
ARMMGAProcess(myDataset ds,
DataB dataBase,
int nTrials,
int popsize,
int kItemsets,
double ps,
double pc,
double pm,
double alpha)
It creates a new process for the algorithm by setting up its parameters
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<AssociationRule> |
getRules()
Returns the mined association rules
|
java.lang.String |
printRules(java.util.ArrayList<AssociationRule> rules)
Returns a String with relevant information regarding the mined association rules
|
void |
run()
It runs the algorithm for mining association rules.
|
void |
saveReport(java.util.ArrayList<AssociationRule> rules,
java.io.PrintWriter w)
It prints out on the given
PrintWriter object relevant information regarding the mined association rules
|
public ARMMGAProcess(myDataset ds, DataB dataBase, int nTrials, int popsize, int kItemsets, double ps, double pc, double pm, double alpha)
It creates a new process for the algorithm by setting up its parameters
ds
- The instance of the dataset for dealing with its recordsdataBase
- The interval database.nTrials
- The maximum number of evaluations to accomplish before terminating the genetic learningpopsize
- The maximum size of population to handle after each generationkItemsets
- Number of items cosidered for chromosome representation.ps
- The probability of the selection operatorpm
- The probability of the mutation operatorpc
- The probability of the crossover operatoralpha
- The parameter which is used while executing the crossover operatorpublic void run()
public java.lang.String printRules(java.util.ArrayList<AssociationRule> rules)
Returns a String with relevant information regarding the mined association rules
rules
- The array of association rules from which gathering relevant informationpublic void saveReport(java.util.ArrayList<AssociationRule> rules, java.io.PrintWriter w)
It prints out on the given PrintWriter
object relevant information regarding the mined association rules
rules
- The array of association rules from which gathering relevant informationw
- given PrintWriter object to write on.public java.util.ArrayList<AssociationRule> getRules()
ArrayList
with the mined association rules.