category
frequent_pattern_mining_common
Shared predicates for frequent itemset miner dataset validation, support accumulation, and itemset ordering/filtering helpers.
Availability:
logtalk_load(frequent_pattern_mining_protocols(loader))Author: Paulo Moura
Version: 1:0:0
Date: 2026-04-29
Compilation flags:
staticRemarks:
(none)
Inherited public predicates:
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
check_transactions/4
Validates the collected dataset transactions and returns the maximum transaction length.
Compilation flags:
staticTemplate:
check_transactions(Dataset,ItemDomain,Transactions,MaxTransactionLength)Mode and number of proofs:
check_transactions(+object_identifier,+list(atom),+list(pair(integer,list(atom))),-integer) - onesort_patterns/2
Sorts itemset patterns first by pattern length and then lexicographically.
Compilation flags:
staticTemplate:
sort_patterns(Patterns0,Patterns)Mode and number of proofs:
sort_patterns(+list(compound),-list(compound)) - onefilter_patterns/3
Filters itemset patterns by minimum pattern length.
Compilation flags:
staticTemplate:
filter_patterns(Patterns0,MinimumPatternLength,Patterns)Mode and number of proofs:
filter_patterns(+list(compound),+integer,-list(compound)) - onecount_items/4
Accumulates support counts for a list of items.
Compilation flags:
staticTemplate:
count_items(Items,Count,ItemCounts0,ItemCounts)Mode and number of proofs:
count_items(+list(atom),+integer,+list(pair(atom,integer)),-list(pair(atom,integer))) - oneselect_frequent_item_supports/3
Selects the item supports that satisfy the minimum support count.
Compilation flags:
staticTemplate:
select_frequent_item_supports(ItemCounts,SupportCount,FrequentItemSupports)Mode and number of proofs:
select_frequent_item_supports(+list(pair(atom,integer)),+integer,-list(compound)) - onevalid_itemset_patterns/2
True when the patterns are valid itemset(Items, Support) terms over the given item domain with positive integer supports.
Compilation flags:
staticTemplate:
valid_itemset_patterns(ItemDomain,Patterns)Mode and number of proofs:
valid_itemset_patterns(+list(atom),+list(compound)) - zero_or_onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)