Module: Stamina::Dsl::Induction
- Included in:
- Stamina::Dsl
- Defined in:
- lib/stamina-induction/stamina/dsl/induction.rb
Instance Method Summary collapse
-
#blue_fringe(arg) ⇒ Object
Learn a regular language from ‘arg` using the RPNI algorithm.
-
#rpni(arg) ⇒ Object
Learn a regular language from ‘arg` using the RPNI algorithm.
-
#sample(arg) ⇒ Object
Coerces ‘arg` to a Sample.
Instance Method Details
#blue_fringe(arg) ⇒ Object
Learn a regular language from ‘arg` using the RPNI algorithm.
22 23 24 |
# File 'lib/stamina-induction/stamina/dsl/induction.rb', line 22 def blue_fringe(arg) regular Stamina::Induction::BlueFringe.execute(sample(arg)) end |
#rpni(arg) ⇒ Object
Learn a regular language from ‘arg` using the RPNI algorithm.
15 16 17 |
# File 'lib/stamina-induction/stamina/dsl/induction.rb', line 15 def rpni(arg) regular Stamina::Induction::RPNI.execute(sample(arg)) end |
#sample(arg) ⇒ Object
Coerces ‘arg` to a Sample
8 9 10 |
# File 'lib/stamina-induction/stamina/dsl/induction.rb', line 8 def sample(arg) Sample.coerce(arg) end |