lawsynth/crates/lawsynth-score
caelum0x 7a06febeb6 chore(release): inherit repository metadata on all crates
Crates inherited version/license/edition from [workspace.package] but not
`repository`, so every crate published without a repository link. Add
`repository.workspace = true` uniformly, completing the
description+version+license+repository metadata `cargo publish` and crates.io
expect. No build impact.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-06 13:08:47 +03:00
..
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00

lawsynth-score

Deterministic scoring primitives for ranking discovery candidates. It computes residual and fit summaries, expression complexity, information criteria, selection stability, dimensional compatibility, Pareto fronts, and weighted candidate ranks.

Use

use lawsynth_score::fit_statistics;

let fit = fit_statistics(&[1.0, 2.0, 3.0], &[1.1, 1.9, 3.0])?;
assert!(fit.mean_squared_error >= 0.0);
# Ok::<(), lawsynth_score::ScoreError>(())

Scores make trade-offs inspectable but do not turn observational fit into a unique causal explanation. Rank models only over comparable samples and retain the configuration and residual evidence alongside every selected candidate.