| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.100.1/docs/handbook/_sources/libraries/apriori_pattern_miner.rst.txt |
.. _library_apriori_pattern_miner:
apriori_pattern_miner
Apriori frequent itemset miner for transaction datasets. The library
depends on the frequent_pattern_mining_protocols support library,
implements the generic pattern_miner_protocol defined in the
pattern_mining_protocols core library, and mines frequent itemsets
using deterministic level-wise candidate generation and anti-monotone
pruning with one transaction rescan per candidate level using a
candidate hash tree backed by keyed bucket dictionaries. Requires a
dataset implementing transaction_dataset_protocol with transactions
represented as canonical sorted lists of unique declared items.
Open the `../../apis/library_index.html#apriori_pattern_miner <../../apis/library_index.html#apriori_pattern_miner>`__ link in a web browser.
To load this library, load the loader.lgt file:
::
| ?- logtalk_load(apriori_pattern_miner(loader)).
To test this library predicates, load the tester.lgt file:
::
| ?- logtalk_load(apriori_pattern_miner(tester)).
hashes library fnv1a_32 object
to hash candidate items instead of relying on an ad hoc local hash
function.The mine/3 predicate accepts the following options:
]0.0, 1.0]. The default is 0.5.1000, which is effectively capped by the longest
transaction in the dataset.1.The mined pattern miner result is represented by a compound term with the functor chosen by the implementation and arity 3. For example:
::
apriori_pattern_miner(ItemDomain, Patterns, Options)
Where:
ItemDomain: Canonical sorted list of declared dataset items.Patterns: List of itemset(Items, SupportCount) terms ordered
first by pattern length and then lexicographically.Options: Effective mining options used to mine the frequent
itemsets.