Documentation of 'ca.pfv.spmf.algorithms.sequential_rules.rulegen.AlgoRuleGen' Java class
AlgoRuleGen
ca.pfv.spmf.algorithms.sequential_rules.rulegen

Class AlgoRuleGen



  • public class AlgoRuleGen
    extends java.lang.Object
    This 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
      void printStats()
      Print statistics to System.out about the latest execution of the algorithm.
      void runAlgorithm(int minsup, double minconf, java.lang.String input, java.lang.String output)
      Run the algorithm
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlgoRuleGen

        public AlgoRuleGen()
        Default constructor.
    • Method Detail

      • runAlgorithm

        public void runAlgorithm(int minsup,
                                 double minconf,
                                 java.lang.String input,
                                 java.lang.String output)
                          throws java.io.IOException
        Run the algorithm
        Parameters:
        minsup - the minimum support threshold
        minconf - the minimum confidence threshold
        input - the input file path
        output - 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

You see the box below because you did not login.