Documentation of 'ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP.FrequentPatternEnumeration_SPAM' Java class
FrequentPatternEnumeration_SPAM
ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP

Class FrequentPatternEnumeration_SPAM



  • public class FrequentPatternEnumeration_SPAM
    extends java.lang.Object
    This is an implementation of the main methods of SPAM algorithm. We keep open the decision of which IdList to use. In the original paper, the authors use a bitmap implementation. We have such implementation (IDListFatBitmap) but we also have other two ones (both based on hash maps, one with bitsets (IDListBitmap) and another with arraylists (IDListStandard_Map)). NOTE: This implementation saves the pattern to a file as soon as they are found or can keep the pattern into memory, depending on what the user choose. Copyright Antonio Gomariz Peñalver 2013 This file is part of the SPMF DATA MINING SOFTWARE (http://www.philippe-fournier-viger.com/spmf). SPMF is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SPMF is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SPMF. If not, see .
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void execute(EquivalenceClass equivalenceClass, boolean keepPatterns, boolean verbose)
      Execution of the search of frequent patterns.
      int getFrequentPatterns()
      It returns the number of frequent patterns found by the last execution of the algorithm.
      void setFrequentPatterns(int frequentPatterns) 
      • Methods inherited from class java.lang.Object

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

      • FrequentPatternEnumeration_SPAM

        public FrequentPatternEnumeration_SPAM(double minSupportAbsolute,
                                               Saver saver)
        Standard constructor of the class.
        Parameters:
        minSupportAbsolute - The absolute minimum support threshold
        saver - Saver object to decide where the user want to save the results, if it the case
    • Method Detail

      • execute

        public void execute(EquivalenceClass equivalenceClass,
                            boolean keepPatterns,
                            boolean verbose)
        Execution of the search of frequent patterns.
        Parameters:
        equivalenceClass - The equivalence class from we start to search for.
        keepPatterns - Flag to indicate if we want to keep the patterns found.
        verbose - Flag for debugging purposes
      • getFrequentPatterns

        public int getFrequentPatterns()
        It returns the number of frequent patterns found by the last execution of the algorithm.
        Returns:
        the number of frequent patterns found.
      • setFrequentPatterns

        public void setFrequentPatterns(int frequentPatterns)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.