Discovery (§8/§16): add Pareto-frontier construction over the multi-objective candidate score vector (DiscoveryResult.frontier + pareto_frontier()), opt-in regime segmentation (result.regimes), and bootstrap uncertainty attachment; CLI --pareto/--regimes flags. Benchmarks: a real generate->run->score->classify execution engine driving the compiled CLI (9 supported cases end-to-end, 21 honest capability boundaries). Rust workspace 329->342 tests; benchmarks +8 tests. clippy -D warnings clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
522 B
Rust
17 lines
522 B
Rust
use lawsynth_discovery::DiscoveryBranch;
|
|
use lawsynth_score::CandidateMetrics;
|
|
use std::{hint::black_box, time::Instant};
|
|
fn main() {
|
|
let branch = DiscoveryBranch::new(
|
|
"sparse",
|
|
"feature regression",
|
|
CandidateMetrics { mean_squared_error: 0.1, complexity: 4 },
|
|
);
|
|
let started = Instant::now();
|
|
let mut names = 0;
|
|
for _ in 0..1_000_000 {
|
|
names += black_box(branch.clone()).name.len();
|
|
}
|
|
println!("cloned {names} branch-name bytes in {:?}", started.elapsed());
|
|
}
|