Repository navigation
libsdca 0.4.0 - #10
Merged
Merged
Conversation
…32 work by default See CHANGELOG.md for the changes since 0.3.0. The numerics and performance write-ups under docs/ are replaced by the known limits in docs/API.md, the benchmarks in python/TORCH.md and the technical report.
…ip the examples test in the sdist
Clean APIs in every interface (breaking): one vocabulary of losses, each taking only its own parameters, one target kind per loss, no aliases or sentinel values, TypeError and ValueError up front. C ABI version 6, C++ objectives with the shared names, MATLAB with shared names and 1-based labels, NumPy loss objects, a scikit-learn SDCAClassifier with sklearn names, one PyTorch/JAX function and module per loss (label smoothing, probability targets, weight, ignore_index, torch.func), and a Rust Solver/Loss/Settings API. Fixes an entropy step at label probability 1, size checks before allocating, and the status of a fit stopped by max_epoch. CI runs a profile of the conformance matrix.
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.
Summary
libsdca 0.4.0 replaces the 0.3.x interfaces with one consistent, breaking API design and fixes the issues found while reviewing it.
k,gamma,alpha,temperature); one target kind per loss (labels, label sets / masks, teacher logits, target probabilities for training); no string aliases or sentinel values;TypeErrorfor wrong types andValueErrorfor bad values, checked up front.fit(X, y, libsdca.TopKHingeBeta(k=2)),loss_and_grad,coordinate_update), explicitKernelandProbabilitiesinputs,seedandnum_threads.libsdca.sklearn.SDCAClassifierwith scikit-learn names (max_iter,n_jobs,random_state,kernel="precomputed"); passescheck_estimator.weightandignore_index;torch.functransforms work for every loss.Lossvariants with their parameters, aSolverbuilder,SettingsandThreads, typed evaluation history.gammaparameter and self-contained headers; MATLAB with the shared names and 1-based labels.max_epochreportssolvedwhen its last evaluation meetstol;eval_epoch = 0evaluates only at the end everywhere.--conformance ci); a manual run withconformance: fullruns the full matrix and uploads the records of failing cells.The fused loss kernels are unchanged, so the benchmarks in
python/TORCH.mdstand. SeeCHANGELOG.mdfor details.