Documentation of 'ca.pfv.spmf.algorithms.sequential_rules.topseqrules_and_tns.AlgoTopSeqRules' Java class
AlgoTopSeqRules
ca.pfv.spmf.algorithms.sequential_rules.topseqrules_and_tns

Class AlgoTopSeqRules



  • public class AlgoTopSeqRules
    extends java.lang.Object
    This is the original implementation of the TopSeqRule algorithm for mining Top-K sequential rules. It is described in this paper:

    Fournier-Viger, P. & Tseng, V. S. (2011). Mining Top-K Sequential Rules. Proceedings of the 7th Intern. Conf. on Advanced Data Mining and Applications (ADMA 2011). LNAI 7121, Springer, pp.180-194.

    The implementation use the red-black tree data structure for storing the current top-k rules during the mining process and the top-k candidate for exploration (see details in the paper).
    See Also:
    RedBlackTree, Sequence, SequenceDatabase
    • Constructor Summary

      Constructors 
      Constructor and Description
      AlgoTopSeqRules()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getTotalTime()
      Get the total runtime of the last execution.
      void printStats()
      Print statistics about the last algorithm execution to System.out.
      RedBlackTree<Rule> runAlgorithm(int k, SequenceDatabase database, double minConfidence)
      The main method to run the algorithm
      void writeResultTofile(java.lang.String path)
      Write the result by the last execution of the method "runAlgorithm" to an output file
      • Methods inherited from class java.lang.Object

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

      • AlgoTopSeqRules

        public AlgoTopSeqRules()
        Default constructor
    • Method Detail

      • runAlgorithm

        public RedBlackTree<Rule> runAlgorithm(int k,
                                               SequenceDatabase database,
                                               double minConfidence)
        The main method to run the algorithm
        Parameters:
        k - : the chosen value of k
        database - : a sequence database
        minConfidence - : the minimum confidence threshold
        Returns:
        a redblacktree containing the top-k sequential rules
      • printStats

        public void printStats()
        Print statistics about the last algorithm execution to System.out.
      • getTotalTime

        public double getTotalTime()
        Get the total runtime of the last execution.
        Returns:
        the time as a double.
      • writeResultTofile

        public void writeResultTofile(java.lang.String path)
                               throws java.io.IOException
        Write the result by the last execution of the method "runAlgorithm" to an output file
        Parameters:
        path - the output file path
        Throws:
        java.io.IOException - exception if an error occur when writing the file.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.