Slide 29
Slide 29 text
Try it!
試
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "lernen"
end
alphabet = %w[0 1]
sul = Lernen::SUL.from_block do |inputs|
inputs.count { _1 == "1" } % 4 == 3
end
oracle = Lernen::BreadthFirstExplorationOracle.new(alphabet, sul)
automaton =
Lernen::LStar.learn(alphabet, sul, oracle, automaton_type: :dfa)