ca.pfv.spmf.algorithms.sequential_rules.rulegen
Class AlgoRuleGen
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequential_rules.rulegen.AlgoRuleGen
-
public class AlgoRuleGen extends java.lang.ObjectThis is an implementation of the RuleGen algorithm proposed by Zaki et al to generate sequential rules where the antecedent and consequent are sequential patterns. The RuleGen algorithm is described in:
M. J. Zaki, SPADE: An Efficient Algorithm for Mining Frequent Se-quences,Machine Learning, vol. 42, no.1-2, pp. 31-60, 2001.
However, note that instead of using the SPADE algorithm, we use the PrefixSpan algorithm because at the time that this algorithm was implemented there was no implementation of SPADE in SPMF and PrefixSpan is a fast algorithm.- See Also:
AlgoPrefixSpan,SequentialPattern,SequentialPatterns
-
-
Constructor Summary
Constructors Constructor and Description AlgoRuleGen()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidprintStats()Print statistics to System.out about the latest execution of the algorithm.voidrunAlgorithm(int minsup, double minconf, java.lang.String input, java.lang.String output)Run the algorithm
-
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm(int minsup, double minconf, java.lang.String input, java.lang.String output) throws java.io.IOExceptionRun the algorithm- Parameters:
minsup- the minimum support thresholdminconf- the minimum confidence thresholdinput- the input file pathoutput- the output file path for saving the result- Throws:
java.io.IOException- exception if there is an error reading/writing files
-
printStats
public void printStats()
Print statistics to System.out about the latest execution of the algorithm.
-
-
DMelt 3.0 © DataMelt by jWork.ORG