Cpp ML Library  1.0.0
A library of Machine Learning Algorithmns seen from the Udemy course Machine Learning A to Z.
Public Member Functions | List of all members
Eclat Class Reference

Class to perform frequent itemset mining using the Eclat algorithm. More...

#include <Eclat.hpp>

Public Member Functions

 Eclat (double min_support)
 Constructor for the Eclat class. More...
 
std::vector< std::vector< int > > run (const std::vector< std::vector< int >> &transactions)
 Runs the Eclat algorithm on the provided dataset. More...
 
std::map< std::vector< int >, int > get_support_counts () const
 Gets the support counts for all frequent itemsets found. More...
 

Detailed Description

Class to perform frequent itemset mining using the Eclat algorithm.

Constructor & Destructor Documentation

◆ Eclat()

Eclat::Eclat ( double  min_support)

Constructor for the Eclat class.

Parameters
min_supportMinimum support threshold (as a fraction between 0 and 1).

Member Function Documentation

◆ get_support_counts()

std::map< std::vector< int >, int > Eclat::get_support_counts ( ) const

Gets the support counts for all frequent itemsets found.

Returns
A map where keys are itemsets (as vectors) and values are support counts.

◆ run()

std::vector< std::vector< int > > Eclat::run ( const std::vector< std::vector< int >> &  transactions)

Runs the Eclat algorithm on the provided dataset.

Parameters
transactionsA vector of transactions, each transaction is a vector of items.
Returns
A vector of frequent itemsets, where each itemset is represented as a vector of items.

The documentation for this class was generated from the following file: