Sha256: 6bcf7c656fc35f1dfa51ac242cf5871172ae02c22ebf3a81878992e762dcdd03
Contents?: true
Size: 911 Bytes
Versions: 7
Compression:
Stored size: 911 Bytes
Contents
# # This is the introduction example for Stamina induction algorithms # # Classical induction is aimed at learning a regular language from a # `positive` sample, under the control of a `negative` sample. # # Samples are commonly captured through a Prefix Tree Acceptor (PTA). # A PTA capturing both a positive and a negative sample is called an # Augmented PTA (APTA) # # a positive sample will be captured through a PTA # (accepting states capture positive strings) positive = sample <<-SAMPLE + + a + b b + b b a + b a a b + b a a a b a SAMPLE # a negative sample will be captured through a PTA # (no accepting states, but error states capturing negative # strings) negative = sample <<-SAMPLE - b - a b - a b a SAMPLE # The union of samples is recognized as follows, and captured through # an APTA (observe that both accepting and error states are present) training = positive + negative
Version data entries
7 entries across 7 versions & 1 rubygems