Files
zeekay 6a0a3ab088 Every crate names its dependencies itself, and every published crate moves a patch
No crate inherits from the workspace any longer: each manifest holds its
own version, package fields, lints and dependency specs, siblings as a
path and the exact version they publish at. The root keeps members,
exclude, resolver and profiles. Every publishable crate takes a patch
bump so the registry carries manifests that stand alone.

Claude-Session: https://claude.ai/code/session_01JupC8d38f9Lkfz62hvjG2q
2026-10-06 14:44:26 -07:00

47 lines
2.0 KiB
TOML

[package]
name = "hanzo-learn"
# A new crate opens at 0.1.0. Versioning and publication belong to the release track.
version = "0.1.1"
description = "Statistical learning as values: fit is a transformation, a model is a value, predict is a query."
keywords = ["machine-learning", "regression", "statistics"]
categories = ["science"]
edition = "2021"
repository = "https://github.com/hanzoai/ml"
license = "MIT OR Apache-2.0"
[dependencies]
sha2 = "0.10"
rayon = "1.7.0"
[dev-dependencies]
# `float_roundtrip` is NOT optional here, it is what makes the oracle an oracle.
# serde_json's default parser takes a fast path that is accurate to about one ulp: it reads
# the fixture literal 1.5442159175872803 back as 1.5442159175872805. Every bit-identity
# assertion in `tests/sklearn.rs` — split thresholds, scaler statistics, the local outlier
# factor — would then be comparing a correct value against a corrupted one, and the failure
# looks exactly like an arithmetic bug in the estimator. Measured, not assumed; see the
# note on `reals` in tests/sklearn.rs.
serde_json = { version = "1.0.99", features = ["float_roundtrip"] }
criterion = { version = "0.8", default-features = false }
# The `fraud` example reads a labelled dataset off disk. The parquet crate's own record
# reader is enough for that — no arrow — and it stays a DEV dependency: the crate itself
# takes its data as a `Matrix`, so a file format is never part of what it links.
parquet = "59"
[[bench]]
name = "learn"
harness = false
# The workspace's lint decisions rather than a second set of this crate's own — every other
# member opts in the same way. It matters here for `needless_range_loop`, allowed there for
# parallel-array indexing, which is what the Newton step's Hessian accumulation does: one
# index reads the working weights AND the design row.
[lints.clippy]
explicit_counter_loop = "allow"
unnecessary_unwrap = "allow"
manual_checked_ops = "allow"
needless_borrow = "allow"
large_const_arrays = "allow"
needless_range_loop = "allow"
too_many_arguments = "allow"