public class AlgoTRuleGrowth
extends java.lang.Object
Sequence
,
SequenceDatabase
Constructor and Description |
---|
AlgoTRuleGrowth()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getTotalTime()
Get the total runtime of the last execution.
|
java.lang.String[] |
inputRules() |
java.lang.String[] |
outputRules() |
void |
printStats()
Print statistics about the last algorithm execution to System.out.
|
void |
runAlgorithm(double minSupport,
double minConfidence,
java.lang.String input,
java.lang.String output,
int windowSize)
Run the algorithm.
|
void |
runAlgorithm(java.lang.String input,
java.lang.String output,
int relativeMinSupport,
double minConfidence,
int windowSize)
Run the algorithm.
|
void |
setMaxAntecedentSize(int maxAntecedentSize)
Set the number of items that a rule antecedent should contain (optional).
|
void |
setMaxConsequentSize(int maxConsequentSize)
Set the number of items that a rule consequent should contain (optional).
|
public void runAlgorithm(double minSupport, double minConfidence, java.lang.String input, java.lang.String output, int windowSize) throws java.io.IOException
minSupport
- Minsup as a percentage (ex: 0.05 = 5 %)minConfidence
- minimum confidence (a value between 0 and 1).input
- the input file pathoutput
- the output file pathwindowSize
- a window sizejava.io.IOException
- exception if there is an error reading/writing filespublic void runAlgorithm(java.lang.String input, java.lang.String output, int relativeMinSupport, double minConfidence, int windowSize) throws java.io.IOException
relativeMinSupport
- the minsup parameter as a a relative value (integer)minConfidence
- minimum confidence (a value between 0 and 1).input
- the input file pathoutput
- the output file pathwindowSize
- a window sizejava.io.IOException
- exception if there is an error reading/writing filespublic java.lang.String[] inputRules()
public java.lang.String[] outputRules()
public void setMaxAntecedentSize(int maxAntecedentSize)
maxAntecedentSize
- the maximum number of itemspublic void setMaxConsequentSize(int maxConsequentSize)
maxConsequentSize
- the maximum number of itemspublic void printStats()
public double getTotalTime()