Documentation of 'ca.pfv.spmf.algorithms.frequentpatterns.estDec.Algo_estDec' Java class
Algo_estDec
ca.pfv.spmf.algorithms.frequentpatterns.estDec

Class Algo_estDec



  • public class Algo_estDec
    extends java.lang.Object
    This is an implementation of the estDec algorithm (J. Chang, W.S. Lee 2006).

    This implementation was made by Azadeh Soltani

    Copyright (c) 2008-2012 Azadeh Soltani, Philippe Fournier-Viger

    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 .
    See Also:
    estNode, estTree
    • Constructor Summary

      Constructors 
      Constructor and Description
      Algo_estDec(double mins)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performMining_saveResultToFile(java.lang.String outputPath)
      Mine recent frequent itemsets from the current tree and save the result to a file
      java.util.Hashtable<java.util.List<java.lang.Integer>,java.lang.Double> performMining_saveResultToMemory()
      Mine recent frequent itemsets from the current tree and save the result to memory
      void printStats()
      Print statistics about the algorithm execution to the console.
      void processTransaction(int[] transaction)
      Process a transaction (add it to the tree and update itemsets
      void processTransactionFromFile(java.lang.String input)
      Run the algorithm by loading the transactions from an input file.
      void setDecayRate(double b, double h)
      Set the decay rate
      • Methods inherited from class java.lang.Object

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

      • Algo_estDec

        public Algo_estDec(double mins)
        Constructor
        Parameters:
        mins - minimum support
    • Method Detail

      • processTransactionFromFile

        public void processTransactionFromFile(java.lang.String input)
                                        throws java.io.FileNotFoundException,
                                               java.io.IOException
        Run the algorithm by loading the transactions from an input file.
        Parameters:
        input - the input file path
        output - the output file path for saving the result
        mins - the minsup threshold as a double value in [0, 1]
        Throws:
        java.io.FileNotFoundException - if error opening the input file
        java.io.IOException - if error reading/writing files
      • performMining_saveResultToFile

        public void performMining_saveResultToFile(java.lang.String outputPath)
                                            throws java.io.IOException
        Mine recent frequent itemsets from the current tree and save the result to a file
        Parameters:
        outputPath - the output file path
        Throws:
        java.io.IOException
      • performMining_saveResultToMemory

        public java.util.Hashtable<java.util.List<java.lang.Integer>,java.lang.Double> performMining_saveResultToMemory()
                                                                                                                 throws java.io.IOException
        Mine recent frequent itemsets from the current tree and save the result to memory
        Parameters:
        outputPath - the output file path
        Returns:
        Throws:
        java.io.IOException
      • processTransaction

        public void processTransaction(int[] transaction)
        Process a transaction (add it to the tree and update itemsets
        Parameters:
        transaction - an array of integers
      • setDecayRate

        public void setDecayRate(double b,
                                 double h)
        Set the decay rate
        Parameters:
        b - decay base
        h - decay-base life
      • printStats

        public void printStats()
        Print statistics about the algorithm execution to the console.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.