Skip to content

Command line reference

The fpgrowth console script and python3 -m fpgrowth share the same interface.

Synopsis

fpgrowth [-h] [-V] -i IN_FILE [-o OUT_FILE] [-m MIN_SUPP]

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

  1. Read the database with read_database.
  2. Mine itemsets with mine_frequent_itemsets.
  3. Write the results with write_frequent_itemsets.
  4. 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.