#helper #machine-learning

no-std sklears-utils

Shared utilities for sklears: validation, data generation, helpers

3 releases

0.1.0-beta.1 Jan 1, 2026
0.1.0-alpha.2 Dec 23, 2025
0.1.0-alpha.1 Oct 13, 2025

#12 in #helpers

Download history 125/week @ 2025-10-14 97/week @ 2025-10-21 39/week @ 2025-10-28 48/week @ 2025-11-04 67/week @ 2025-11-11 46/week @ 2025-11-18 44/week @ 2025-11-25 42/week @ 2025-12-02 48/week @ 2025-12-09 106/week @ 2025-12-16 46/week @ 2025-12-23 28/week @ 2025-12-30 14/week @ 2026-01-06 15/week @ 2026-01-13 45/week @ 2026-01-20 75/week @ 2026-01-27

152 downloads per month
Used in 22 crates (21 directly)

MIT/Apache

5MB
114K SLoC

sklears-utils

Crates.io Documentation License Minimum Rust Version

Latest release: 0.1.0-beta.1 (January 1, 2026). See the workspace release notes for highlights and upgrade guidance.

Overview

sklears-utils hosts shared utilities used across the sklears workspace—configuration helpers, logging, dataset helpers, validation routines, and developer ergonomics.

Key Features

  • Configuration: Environment-aware configuration loaders, feature flag combinators, and CLI helpers.
  • Validation: Data shape checks, feature metadata, error context propagation, and safe casting utilities.
  • Parallel Helpers: Rayon thread-pool orchestration, chunking strategies, and work-stealing helpers.
  • Testing Support: Fixtures, golden data loaders, and deterministic RNG wrappers for reproducible tests.

Usage

This crate is primarily consumed internally, but developers extending sklears can depend on it for consistent utilities.

use sklears_utils::validation::check_array;
use scirs2_core::ndarray::Array2;

let x: Array2<f64> = // load data
    Array2::zeros((64, 10));

check_array(&x)?.ensure_finite()?;

Status

  • Validated indirectly by the entire workspace test suite (11,292 passing tests) in 0.1.0-beta.1.
  • Acts as shared infrastructure for dozens of crates.
  • Additional helpers and refactors are tracked in this crate’s TODO.md.

Dependencies

~36–65MB
~1M SLoC