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)