Command line reference¶
The fpgrowth console script and python3 -m fpgrowth share the same
interface.
Synopsis¶
Options¶
| Option | Type | Default | Description |
|---|---|---|---|
-h, --help |
flag | — | Show help and exit. |
-V, --version |
flag | — | Show the package version and exit. |
-i, --in_file |
path | required | Input transaction database. |
-o, --out_file |
path | MiningResults.txt |
Output results file. |
-m, --min_supp |
float | 0.5 |
Relative minimum support in [0, 1]. |
Semantics¶
-m is a relative frequency. The absolute support threshold is
min_supp * (number of transactions), and an itemset is reported when its
support count is at least that value.
Behaviour¶
- Read the database with
read_database. - Mine itemsets with
mine_frequent_itemsets. - Write the results with
write_frequent_itemsets. - Print
|FPs| = <count>to standard output.
The process exits with status 0 on success. A -m value outside [0, 1]
raises ValueError.
Input and output files¶
See the file formats reference.