| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.100.1/docs/handbook/_sources/libraries/clo_span_pattern_miner.rst.txt |
.. _library_clo_span_pattern_miner:
clo_span_pattern_miner
CloSpan closed sequential pattern miner for sequence datasets. The
library depends on the sequential_pattern_mining_protocols support
library, implements the generic pattern_miner_protocol defined in
the pattern_mining_protocols core library, and mines closed frequent
sequential patterns directly using closure-aware projected-database
search with explicit projected-database-equivalence backward pruning
that skips equivalent branches before recursion, together with a
same-support closed frontier that merges branch results during the
search without a final post-filter.
Requires a dataset implementing sequence_dataset_protocol with
sequences represented as ordered lists of canonical sorted itemsets over
a declared item domain.
Open the `../../apis/library_index.html#clo_span_pattern_miner <../../apis/library_index.html#clo_span_pattern_miner>`__ link in a web browser.
To load this library, load the loader.lgt file:
::
| ?- logtalk_load(clo_span_pattern_miner(loader)).
To test this library predicates, load the tester.lgt file:
::
| ?- logtalk_load(clo_span_pattern_miner(tester)).
The mine/3 predicate accepts the following options:
]0.0, 1.0]. The default is 0.5.1000, effectively capped by the
longest sequence 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:
::
clo_span_pattern_miner(ItemDomain, Patterns, Options)
Where:
ItemDomain: Canonical sorted list of declared dataset items.Patterns: List of sequence_pattern(Pattern, SupportCount)
terms ordered first by total item count and then lexicographically.Options: Effective mining options used to mine the closed
sequential patterns.