Class AlgoCMDeogun
- java.lang.Object
-
- org.processmining.logfiltering.algorithms.SPMF.RuleGrowth.AlgoCMDeogun
-
public class AlgoCMDeogun extends java.lang.ObjectThis is the original implementation of the CMDeo algorithm for mining sequential rules common to several sequences. It is an algorithm adapted from the algorithm of Deogun et al. so that it works for the case of multiple sequences instead of a single sequence
This modified algorithm is described briefly in this paper
Fournier-Viger, P., Faghihi, U., Nkambou, R., Mephu Nguifo, E. (2012). CMRules: Mining Sequential Rules Common to Several Sequences. Knowledge-based Systems, Elsevier, 25(1): 63-76.
and a french description is provided in my Ph.D. thesis:
Fournier-Viger, P. (2010), Un modèle hybride pour le support à l'apprentissage dans les domaines procéduraux et mal-définis. Ph.D. Thesis, University of Quebec in Montreal, Montreal, Canada, 184 pages. This implementation was modified by Ryan Panos to include the lift measure.
-
-
Field Summary
Fields Modifier and Type Field Description longtimeEndPreprocessingprotected inttransactionCount
-
Constructor Summary
Constructors Constructor Description AlgoCMDeogun()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprintStats()Print statistics about the latest algorithm execution.voidrunAlgorithm(java.lang.String input, java.lang.String output, double absoluteMinSupport, double minConfidence)Run the algorithm with an absolute minimum support (double).voidrunAlgorithm(java.lang.String input, java.lang.String output, int relativeSupport, double minConfidence)Run the algorithm with a relative minimum support (integer)voidsetMaxLeftSize(int maxLeftSize)Set the maximum antecedent size constraint for rules to be found.voidsetMaxRightSize(int maxRightSize)Set the maximum consequent size constraint for rules to be found.voidsetMinLeftSize(int minLeftSize)Set the minimum antecedent size constraint for rules to be found.voidsetMinRightSize(int minRightSize)Set the minimum consequent size constraint for rules to be found.
-
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm(java.lang.String input, java.lang.String output, double absoluteMinSupport, double minConfidence) throws java.io.IOExceptionRun the algorithm with an absolute minimum support (double).- Parameters:
input- input file containing a sequence database.output- the file path for writing the resultabsoluteMinSupport- the minsup is a percentage value (ex.: 0.05 = 5 % of all sequences in the database)minConfidence- the minimum confidence threshold- Throws:
java.io.IOException- exception if error while writing the output file.
-
runAlgorithm
public void runAlgorithm(java.lang.String input, java.lang.String output, int relativeSupport, double minConfidence) throws java.io.IOExceptionRun the algorithm with a relative minimum support (integer)- Parameters:
input- input file containing a sequence database.output- the file path for writing the resultrelativeSupport- the minsup is a number of sequences (ex.: 5 = 5 sequences of the database)minConfidence- the minimum confidence threshold- Throws:
java.io.IOException- exception if error while writing the output file.
-
printStats
public void printStats()
Print statistics about the latest algorithm execution.
-
setMinLeftSize
public void setMinLeftSize(int minLeftSize)
Set the minimum antecedent size constraint for rules to be found.- Parameters:
minLeftSize- an integer
-
setMaxLeftSize
public void setMaxLeftSize(int maxLeftSize)
Set the maximum antecedent size constraint for rules to be found.- Parameters:
maxLeftSize- an integer
-
setMinRightSize
public void setMinRightSize(int minRightSize)
Set the minimum consequent size constraint for rules to be found.- Parameters:
minRightSize- an integer
-
setMaxRightSize
public void setMaxRightSize(int maxRightSize)
Set the maximum consequent size constraint for rules to be found.- Parameters:
maxRightSize- an integer
-
-