category
sequential_pattern_mining_common
Shared predicates for sequential pattern miner dataset validation, support counting, and pattern ordering helpers.
logtalk_load(sequential_pattern_mining_protocols(loader))staticPublic predicates
(no local declarations; see entity ancestors if any)
Protected predicates
check_sequences/4
Validates the collected dataset sequences and returns the maximum total sequence length.
staticcheck_sequences(Dataset,ItemDomain,Sequences,MaxSequenceLength)check_sequences(+object_identifier,+list(atom),+list(pair(integer,list(list(atom)))),-integer) - onepattern_length/2
Computes the total number of items in a sequential pattern.
staticpattern_length(Pattern,PatternLength)pattern_length(+list(list(atom)),-integer) - onesort_patterns/2
Sorts sequence patterns first by total item count and then lexicographically.
staticsort_patterns(Patterns0,Patterns)sort_patterns(+list(compound),-list(compound)) - onefilter_patterns/3
Filters sequence patterns by minimum total item count.
staticfilter_patterns(Patterns0,MinimumPatternLength,Patterns)filter_patterns(+list(compound),+integer,-list(compound)) - onecount_items/4
Accumulates support counts for a list of items.
staticcount_items(Items,Count,ItemCounts0,ItemCounts)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.
staticselect_frequent_item_supports(ItemCounts,SupportCount,FrequentItemSupports)select_frequent_item_supports(+list(pair(atom,integer)),+integer,-list(compound)) - onesort_item_supports/2
Sorts item supports lexicographically by item.
staticsort_item_supports(ItemSupports0,ItemSupports)sort_item_supports(+list(compound),-list(compound)) - onevalid_sequence_patterns/2
True when the patterns are valid sequence_pattern(Pattern, Support) terms over the given item domain with positive integer supports.
staticvalid_sequence_patterns(ItemDomain,Patterns)valid_sequence_patterns(+list(atom),+list(compound)) - zero_or_onePrivate predicates
(no local declarations; see entity ancestors if any)
Operators
(none)