Swal.TeacherMinimally adequate teacher (MAT) oracle for active learning.
Wraps a target weighted language function with memoisation and provides membership and equivalence queries. Equivalence is approximated by BFS enumeration of Σ* up to a configurable bound.
Per-query-type hit/miss counters, written to the output JSON.
val pp_cache :
Ppx_deriving_runtime.Format.formatter ->
cache ->
Ppx_deriving_runtime.unitval show_cache : cache -> Ppx_deriving_runtime.stringval yojson_of_cache : cache -> Ppx_yojson_conv_lib.Yojson.Safe.tval pp_stats :
Ppx_deriving_runtime.Format.formatter ->
stats ->
Ppx_deriving_runtime.unitval show_stats : stats -> Ppx_deriving_runtime.stringval yojson_of_stats : stats -> Ppx_yojson_conv_lib.Yojson.Safe.tval mk_stats : statsmodule type T = sig ... endModule type for the learning oracle (teacher / minimally adequate teacher).
module Make
(S : Algebra.Semiring.T) :
T with type s = S.t and type a = Automata.WFA.Make(S).t