Documentation of 'ca.pfv.spmf.algorithms.sequential_rules.trulegrowth_with_strings.AlgoTRuleGrowth_withStrings' Java class
AlgoTRuleGrowth_withStrings
ca.pfv.spmf.algorithms.sequential_rules.trulegrowth_with_strings

Class AlgoTRuleGrowth_withStrings



  • public class AlgoTRuleGrowth_withStrings
    extends java.lang.Object
    This is a modified implementation of the TRULEGROWTH algorithm for mining sequential rules from sequences containing Strings instead of integers.

    Fournier-Viger, P., Wu, C.-W., Tseng, V.S., Nkambou, R. (2012). Mining Sequential Rules Common to Several Sequences with the Window Size Constraint. Proceedings of the 25th Canadian Conf. on Artificial Intelligence (AI 2012), Springer, LNAI 7310, pp.299-304.

    In future a version of SPMF, it is planned to remove this class and to provide a more general mechanism for handling strings that would work for all algorithms that take sequences as input.
    See Also:
    Itemset, AlgoTRuleGrowth, Sequence, SequenceDatabase
    • 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.
      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.
      • Methods inherited from class java.lang.Object

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

      • AlgoTRuleGrowth_withStrings

        public AlgoTRuleGrowth_withStrings()
        Default constructor
    • Method Detail

      • runAlgorithm

        public void runAlgorithm(double minSupport,
                                 double minConfidence,
                                 java.lang.String input,
                                 java.lang.String output,
                                 int windowSize)
                          throws java.io.IOException
        Run the algorithm.
        Parameters:
        minSupport - Minsup as a percentage (ex: 0.05 = 5 %)
        minConfidence - minimum confidence (a value between 0 and 1).
        input - the input file path
        output - the output file path
        windowSize - a window size
        Throws:
        java.io.IOException - exception if there is an error reading/writing files
      • runAlgorithm

        public void runAlgorithm(java.lang.String input,
                                 java.lang.String output,
                                 int relativeMinSupport,
                                 double minConfidence,
                                 int windowSize)
                          throws java.io.IOException
        Run the algorithm.
        Parameters:
        relativeMinSupport - minsup as a a relative value (integer)
        minConfidence - minimum confidence (a value between 0 and 1).
        input - the input file path
        output - the output file path
        windowSize - a window size
        Throws:
        java.io.IOException - exception if there is an error reading/writing files
      • 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.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.