public class MODENARProcess
extends java.lang.Object
It provides the implementation of the MODENAR algorithm to be run in a process
Constructor and Description |
---|
MODENARProcess()
Default constructor.
|
MODENARProcess(myDataset ds,
int nEvaluations,
int popSize,
double cr,
int threshold,
double[] wk,
double AF)
It creates a new process for the algorithm by setting up its parameters
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<AssociationRule> |
getAssoc_rules_Pareto() |
java.util.ArrayList<Chromosome> |
getBestrules()
Returns the best rules mined.
|
double |
getCR() |
myDataset |
getDs() |
java.lang.String |
getParetos() |
int |
getPopSize() |
int |
getThreshold() |
double[] |
getWk() |
void |
printPareto(java.util.ArrayList<AssociationRule> rulesPareto) |
static double |
roundDouble(double number,
int decimalPlace) |
void |
run()
It runs the algorithm for mining association rules.
|
void |
saveReport(java.util.ArrayList<AssociationRule> rules,
java.io.PrintWriter w) |
void |
setBestrules(java.util.ArrayList<Chromosome> bestrules)
Sets the best rules mined with the array given.
|
void |
setCR(double cr) |
void |
setDs(myDataset ds) |
void |
setPopSize(int popSize) |
void |
setThreshold(int threshold) |
void |
setWk(double[] wk) |
boolean |
terminate()
Checks the stop condition for the algorithm.
|
public MODENARProcess()
public MODENARProcess(myDataset ds, int nEvaluations, int popSize, double cr, int threshold, double[] wk, double AF)
It creates a new process for the algorithm by setting up its parameters
ds
- The instance of the dataset for dealing with its recordsnEvaluations
- The maximum number of evaluations to accomplish before terminating the genetic learningpopSize
- The maximum size of population to handle after each generationthreshold
- Thresholdwk
- Wk values.cr
- The probability of the crossover operatorAF
- The parameter which is used while executing the crossover operatorpublic void run()
public boolean terminate()
public java.util.ArrayList<Chromosome> getBestrules()
public void setBestrules(java.util.ArrayList<Chromosome> bestrules)
bestrules
- given best rules to set.public double getCR()
public void setCR(double cr)
public myDataset getDs()
public void setDs(myDataset ds)
public int getPopSize()
public void setPopSize(int popSize)
public int getThreshold()
public void setThreshold(int threshold)
public double[] getWk()
public void setWk(double[] wk)
public static double roundDouble(double number, int decimalPlace)
public void saveReport(java.util.ArrayList<AssociationRule> rules, java.io.PrintWriter w)
public void printPareto(java.util.ArrayList<AssociationRule> rulesPareto)
public java.lang.String getParetos()
public java.util.ArrayList<AssociationRule> getAssoc_rules_Pareto()