class

PatternMatching::AdvancedPatternBuilder

Inherits Reference < Object

Enhanced pattern builder for advanced pattern matching

Constructors

new(atomspace : AtomSpace::AtomSpace)

Instance methods

and_patterns(pattern_names : Array(String)) : Array(MatchResult)

Compose patterns using logical operations

apply_learned_patterns
atomspace
bayesian_inference(evidence : Array(Pattern), hypothesis : Pattern) : Advanced::StatisticalMatcher::ProbabilisticMatch | Nil
composer
fuzzy_match(pattern : Pattern, similarity_threshold : Float64 = 0.8) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)
learn_patterns

Pattern learning operations

learner
monte_carlo_sampling(pattern : Pattern, num_samples : Int32 = 1000) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)
not_patterns(base_pattern : String, exclude_pattern : String) : Array(MatchResult)
or_patterns(pattern_names : Array(String)) : Array(MatchResult)
probabilistic_match(pattern : Pattern) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)

Statistical pattern operations

register_pattern(name : String, template : AtomSpace::Atom, constraints : Array(Constraint) = [] of Constraint)

Register a reusable pattern

statistical_matcher
temporal_interval(pattern : Pattern, interval_ms : Int64) : Array(Advanced::TemporalPatternMatcher::TemporalMatch)
temporal_matcher
temporal_sequence(patterns : Array(Pattern), sequence_name : String = "default") : Array(Advanced::TemporalPatternMatcher::TemporalMatch)

Temporal pattern operations