pub fn evaluate(
inferred: &Grammar,
golden: &dyn MembershipOracle,
golden_sampler: Option<&Grammar>,
positives: &[&str],
config: &SampleConfig,
) -> Result<MetricScores, EvalError>Expand description
Evaluates an inferred grammar against a golden oracle.
Precision is the fraction of samples drawn from inferred that golden
accepts. When golden_sampler is present, recall is the fraction of samples
drawn from that grammar that inferred accepts. When golden_sampler is
absent, recall is the fraction of positives accepted by inferred.