Cpp ML Library
1.0.0
A library of Machine Learning Algorithmns seen from the Udemy course Machine Learning A to Z.
|
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... | |
Class to perform frequent itemset mining using the Eclat algorithm.
Eclat::Eclat | ( | double | min_support | ) |
Constructor for the Eclat class.
min_support | Minimum support threshold (as a fraction between 0 and 1). |
std::map< std::vector< int >, int > Eclat::get_support_counts | ( | ) | const |
Gets the support counts for all frequent itemsets found.
std::vector< std::vector< int > > Eclat::run | ( | const std::vector< std::vector< int >> & | transactions | ) |
Runs the Eclat algorithm on the provided dataset.
transactions | A vector of transactions, each transaction is a vector of items. |