[new release] modelkit (4 packages) (0.4.1) - #30649
Open
clyde-asara wants to merge 1 commit into
Open
Conversation
CHANGES: - Add checked immutable CSR matrices with canonical structure validation, zero-copy indexed row views, explicit materialization, payload-memory accounting, and dense/CSR numerical-kernel dispatch through `Feature_matrix`. - Add min-max, max-absolute, and robust scalers, per-sample normalization, one-hot and ordinal encoders with explicit unknown-category policies and direct CSR one-hot output, reversible label encoding, polynomial features, and missing indicators as immutable transforms with feature-name propagation. - Add lasso and elastic-net regression with deterministic weighted coordinate descent and warm-started descending regularization paths, binary and multiclass ridge classification, multinomial logistic regression with stable softmax probabilities and matrix-valued decision scores, and Poisson and Tweedie generalized linear models with target-domain validation and damped IRLS, each with solver diagnostics and parity fixtures. - Add SGD regression and binary/multiclass SGD classification with hinge and logistic losses under an immutable incremental-training contract: explicit initial class registration, ordered streams, optional shuffling, checkpoints, and continuation equivalence. - Finish sample-weight and class-weight propagation with fold-local balanced and explicit class weights for classifier terminals, opt-in sample-weight routing to transformers, and a weighted standard scaler. - Add confusion-matrix and multiclass classification metrics with micro, macro, and weighted averaging, average precision, one-versus-rest and one-versus-one ROC AUC, top-k accuracy, DCG and NDCG ranking metrics, and multiclass scorers with multiclass cross-validation and grid search. - Add the separately installable `modelkit-nx` and `modelkit-talon` adapter packages for checked admission of explicitly typed Nx tensors and explicitly selected Talon dataframe columns, with shared `Admission` result records, conversion and allocation reports, a source-neutral adapter conformance suite, and macOS arm64 lockfiles; the adapters build on Linux and macOS only at the pinned Raven `1.0.0~alpha3` release. - Rewrite the reference numerical kernels to read immutable Bigarray storage directly with unboxed compensated sums, verified bit for bit against an independent Neumaier fold. - Add deterministic comparative benchmark reports for regularized linear models, ridge classification, multinomial logistic regression, generalized linear models, SGD, adapter admission, sparse kernel dispatch, and solver convergence and scale across tall, square, wide, and rank-deficient shapes; every report remains development evidence with no performance claim. - Defer the optional Lacaml numerical backend to a later release, where LAPACK factorizations first have a consumer. - Artifacts written by this release record producer version 0.4.1; the artifact schema is unchanged and 0.3.x artifacts continue to load.
Contributor
Author
|
Appears that |
Contributor
Author
|
Confirming that it appears that this build suite should not have been run, and should have been |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Portable classical machine learning workflows for OCaml
Reviewer Guidance
This change introduces 2 net new packages for a total of 4 packages; those new packages are:
modelkit-nxmodelkit-talonCHANGES:
zero-copy indexed row views, explicit materialization, payload-memory
accounting, and dense/CSR numerical-kernel dispatch through
Feature_matrix.one-hot and ordinal encoders with explicit unknown-category policies and
direct CSR one-hot output, reversible label encoding, polynomial features,
and missing indicators as immutable transforms with feature-name
propagation.
descent and warm-started descending regularization paths, binary and
multiclass ridge classification, multinomial logistic regression with stable
softmax probabilities and matrix-valued decision scores, and Poisson and
Tweedie generalized linear models with target-domain validation and damped
IRLS, each with solver diagnostics and parity fixtures.
logistic losses under an immutable incremental-training contract: explicit
initial class registration, ordered streams, optional shuffling, checkpoints,
and continuation equivalence.
and explicit class weights for classifier terminals, opt-in sample-weight
routing to transformers, and a weighted standard scaler.
macro, and weighted averaging, average precision, one-versus-rest and
one-versus-one ROC AUC, top-k accuracy, DCG and NDCG ranking metrics, and
multiclass scorers with multiclass cross-validation and grid search.
modelkit-nxandmodelkit-talonadapterpackages for checked admission of explicitly typed Nx tensors and explicitly
selected Talon dataframe columns, with shared
Admissionresult records,conversion and allocation reports, a source-neutral adapter conformance
suite, and macOS arm64 lockfiles; the adapters build on Linux and macOS
only at the pinned Raven
1.0.0~alpha3release.directly with unboxed compensated sums, verified bit for bit against an
independent Neumaier fold.
models, ridge classification, multinomial logistic regression, generalized
linear models, SGD, adapter admission, sparse kernel dispatch, and solver
convergence and scale across tall, square, wide, and rank-deficient shapes;
every report remains development evidence with no performance claim.
LAPACK factorizations first have a consumer.
artifact schema is unchanged and 0.3.x artifacts continue to load.