FPGrowth<T> class

Implements the FP-Growth algorithm for mining frequent itemsets.

This class provides a high-level interface to run the FP-Growth algorithm. It handles transactions, calculates minimum support, and mines the patterns. It uses an internal integer mapping to optimize performance and memory.

Available extensions

Constructors

FPGrowth({required double minSupport, Logger? logger, int parallelism = 1})
Creates an instance of the FP-Growth algorithm runner.

Properties

hashCode int
The hash code for this object.
no setterinherited
minSupport double
The minimum support threshold.
final
parallelism int
The number of isolates to use for parallel processing.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

mine(Stream<List<T>> streamProvider()) Future<(Map<List<T>, int>, int)>
Mines the frequent itemsets from the given transaction stream.
mineFromCsv(String filePath) Future<(Map<List<String>, int>, int)>

Available on FPGrowth<String>, provided by the FPGrowthIO extension

Mines frequent itemsets directly from a CSV file using the current instance configuration (minSupport, parallelism, etc.).
mineFromList(List<List<T>> transactions) Future<(Map<List<T>, int>, int)>
A convenience method to mine frequent itemsets from an in-memory list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited