lawsynth/crates/lawsynth-features
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

lawsynth-features

Typed, deterministic candidate feature libraries for sparse and symbolic discovery. Libraries can include polynomial, trigonometric, bounded rational, lagged, and interaction terms, subject to explicit structural constraints.

Use

use lawsynth_core::Identifier;
use lawsynth_features::FeatureLibrary;

let library = FeatureLibrary::polynomial(
    [Identifier::new("x")?, Identifier::new("u")?], 2, true,
)?;
assert!(!library.terms().is_empty());
# Ok::<(), lawsynth_features::FeatureError>(())

Feature expansion is intentionally finite. Use FeatureConstraint to exclude forbidden symbols or self-interactions and inspect the generated terms before fitting. This crate does not estimate coefficients; pass its matrices to lawsynth-sparse or another calibrated solver.