Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Algorithms

The catalog mirrors the complete scikit-learn taxonomy. Every item enters the roadmap with a mandatory four-stage evolution — naive → tests → performance → out-of-core — and receives a Python binding as soon as it is validated on CPU.

43+ algorithms
  • Preprocessing5
  • Imputation3
  • Linear models7
  • Nearest neighbors4
  • SVM3
  • Trees2
  • Ensembles4
  • Clustering3
  • Decomposition3
  • Outliers1+
  • Model selection6
  • Metrics2+

Preprocessing · sciencekit_preprocessing

EstimatorDescriptionStatus
SKStandardScalerStandardizes by removing the mean and scaling to unit variance (dense · incremental · streaming)Implemented
SKMinMaxScalerAffine scaling of each column onto a configurable range with optional clipping (exact dense fit · sparse-aware incremental and streaming)Implemented
SKRobustScalerMedian / interquartile-range scaling with optional unit-variance normalization (exact dense fit · quantile-sketch incremental and streaming)Implemented
SKOneHotEncoderOne-hot encoding of categorical columns into dense or CSR indicators, with a configurable unknown-category policy (dense and streaming categorical fit)Implemented
SKPolynomialFeaturesPolynomial and interaction expansion with configurable degree, bias and dense/CSR output (dense · sparse · streaming)Implemented

Imputation · sciencekit_impute

EstimatorDescriptionStatus
SKSimpleImputerMean, median, most frequent and constant imputation (dense · sparse · incremental · streaming)Implemented
SKMissingIndicator0.0/1.0 mask of the features missing at fit time (dense · sparse)Implemented
SKKNNImputerMultivariate imputation from the nearest complete donors, with uniform or distance weights and an optional missing indicator (dense only; sparse views rejected)Implemented

Linear models · sciencekit_linear_model

EstimatorDescriptionStatus
SKLinearRegressionOrdinary least squares (dense · incremental · streaming)Implemented
SKRidgeRegression with L2 regularization (dense · sparse · incremental · streaming)Implemented
SKLassoRegression with L1 regularization (dense · sparse · incremental · streaming)Implemented
SKElasticNetCombined L1 + L2 regularization (dense · sparse · incremental · streaming)Implemented
SKLogisticRegressionRegularized logistic classification (binary · multinomial · one-vs-rest · dense · sparse · incremental · streaming)Implemented
SKSGDClassifierStochastic-gradient linear classification (5 losses · one-vs-rest · dense · sparse · incremental · streaming)Implemented
SKSGDRegressorStochastic-gradient linear regression (4 losses · Huber / epsilon-insensitive · dense · sparse · incremental · streaming)Implemented
SKLoraAdapterLow-rank adaptation of a frozen linear or logistic coefficient block (fit · predict · merge/unmerge · export/import · dense and sparse)Implemented

Nearest neighbors · sciencekit_neighbors

Structure/EstimatorDescriptionStatus
SKKNeighborsClassifierk-NN classification (dense trees · sparse brute force)Implemented
SKKNeighborsRegressork-NN regression (dense trees · sparse brute force)Implemented
SKKDTreeImmutable, exact k-d tree over dense features (median split on the widest-spread axis; sparse views rejected with UnsupportedRepresentation)Implemented
SKBallTreeImmutable, exact ball tree over dense features (farthest-pivot split; sparse views rejected with UnsupportedRepresentation)Implemented

Support vector machines · sciencekit_svm

EstimatorDescriptionStatus
SKSVCKernel-based C-support-vector classification (SMO, OvO, Platt + coupling, dense and sparse)Implemented
SKSVR$\varepsilon$-insensitive support-vector regression (SMO, dense and sparse)Implemented
SKLinearSVCScalable linear SVM (dual coordinate descent, hinge and squared hinge, one-vs-rest, class weights, dense and sparse)Implemented

Trees and ensembles · sciencekit_tree + sciencekit_ensemble

EstimatorDescriptionStatus
SKDecisionTreeClassifierCART for classification (dense and sparse, deterministic)Implemented
SKDecisionTreeRegressorCART for regression (dense and sparse, deterministic)Implemented
SKRandomForestClassifierRandom-forest classification (bootstrap, OOB accuracy, dense and sparse)Implemented
SKRandomForestRegressorRandom-forest regression (bootstrap, OOB $R^2$, dense and sparse)Implemented
SKBaggingClassifier / SKBaggingRegressorGeneric parallel bootstrap and feature-subspace aggregation over any supervised base estimator (OOB accuracy / $R^2$, dense and sparse)Implemented
SKGradientBoostingClassifier / SKGradientBoostingRegressorSequential gradient boosting over negative gradients with Newton leaves, shrinkage, subsampling and early stopping (binary, multiclass, squared/absolute/Huber, dense and sparse)Implemented
SKHistGradientBoostingClassifier / SKHistGradientBoostingRegressorLightGBM-style histogram boosting: quantile binning with a missing bin, parallel gradient/Hessian histograms, parent subtraction, leaf-wise growth, bitvec categorical partitions, learned missing routing, subsampling and early stopping (binary, multiclass, squared/absolute, dense and non-densified CSR)Implemented

Unsupervised · sciencekit_cluster, sciencekit_decomposition, sciencekit_outlier

EstimatorDescriptionStatus
SKKMeansLloyd + Elkan k-means with seeded k-means++ (memmap indexes remain Phase 7)Implemented
SKMiniBatchKMeansMini-batch k-means with per-center learning rates, deterministic reassignment, partial_fit and multi-epoch streaming (SKSourceProvider)Implemented
SKDBSCANDensity-based clustering over KD-tree / ball-tree and sparse brute-force region queries with explicit SKClusterLabel::Noise and nearest-core predictionImplemented
SKPCAPrincipal component analysis (full SVD · covariance eigh · sparse randomized SVD)Implemented
SKTruncatedSVDUncentered randomized low-rank SVD for latent semantic analysis and sparse dimensionality reduction (dense · sparse CSR)Implemented
SKIncrementalPCAOut-of-core incremental PCA (Chan-Golub-LeVeque scatter merge · CSR Gram accumulation · partial_fit & fit_streaming)Implemented
SKIsolationForestNon-parametric anomaly detection via random isolation trees, harmonic path-length scoring, Auto/quantile contamination offsets and non-densifying CSR parityImplemented
Anomaly detection (LOF, One-Class SVM)Remaining outlier estimators from the scikit-learn familyPlanned

Model selection, pipelines and metrics

ItemCrateDescriptionStatus
sk_train_test_splitsciencekit_model_selectionSeeded train/test partition by fraction or explicit count, with optional stratification, gathering rows without densifying sparse inputImplemented
SKKFoldsciencekit_model_selectionPlain K-fold with an optional seeded shuffle; disjoint test folds together cover every row exactly onceImplemented
SKStratifiedKFoldsciencekit_model_selectionK-fold preserving per-class proportions; rejects a class with fewer examples than foldsImplemented
SKGroupKFoldsciencekit_model_selectionK-fold that keeps every group entirely on one side of each splitImplemented
SKGridSearchCVClassifier / SKGridSearchCVRegressorsciencekit_model_selectionTyped grid search over configured candidates with shared foldsImplemented
SKHalvingGridSearchClassifier / SKHalvingGridSearchRegressorsciencekit_model_selectionSuccessive-halving search: geometric resource schedule, seeded and stratified round subsamples, deterministic elimination trace, aggressive early pruning and winner refitImplemented
Halving resource axes beyond sample countssciencekit_model_selectionAdditional SKHalvingResource variants (trees, epochs)Planned
SKPipelinesciencekit_pipelineType-safe linear pipeline (compiler-checked composition)Implemented
SKPipelineGraphsciencekit_pipelineValidated runtime DAG pipeline: topological fit and predict, deterministic level order, edge-order merges without densifying CSR, node-attributed errors and classifier/regressor wrappersImplemented
SKStreamingPipelinesciencekit_pipelineOut-of-core linear pipeline over an SKSourceProvider: chained SKStreamingTransformer fitting through the shared prefetch executor, one-shot materialization within a byte budget, multi-epoch replay, CSR-preserving per-batch transform and a bounded batch finalizerImplemented
Classification, regression and clustering metricssciencekit_metricsAccuracy, precision/recall/F1 with macro/micro/weighted/binary averaging, confusion matrix, MSE/RMSE/MAE, $R^2$, silhouette, Calinski-Harabasz, Davies-Bouldin, homogeneity/completeness/V-measure, adjusted Rand and mutual information, plus scorer adapters and streaming accumulatorsImplemented
Ranking metricssciencekit_metricsROC/AUC (binary and multiclass one-vs-rest), ROC and precision-recall curves, average precision, log loss, Matthews correlation and balanced accuracy, with a streaming AUC accumulator and scorer adaptersImplemented
Calibration and multilabel metricssciencekit_metricsCalibration curves, Brier score and multilabel losses (e.g. Hamming and Jaccard)Planned
SKTabularDataset / SKTabularSourceConfigsciencekit_interopEngine-neutral tabular sources: column kinds, dense/sparse feature blocks, owned categorical codes and label tables, numeric/categorical missing mappingImplemented
Polars sourcessciencekit_interopDataFrame and reopenable LazyFrame batches behind the optional polars feature (Polars 0.46, Rust 1.85 pin)Implemented
DataFusion, Arrow and Parquet sourcessciencekit_interopDataFusion 46 DataFrame/RecordBatch conversion, true record-batch streaming and Parquet-through-DataFusion behind the optional datafusion feature, alongside the Arrow 58 adapterImplemented
ONNX exportsciencekit_onnxSKToOnnx translation of the neutral model state into opset-17 ONNX graphs with ONNX-ML tree ensembles, SVM kernel expansions, per-family parity tests and an onnxruntime comparison harness; unsupported families return UnsupportedOperation and are listed in sk_onnx_coverageImplemented
ONNX importsciencekit_onnxSKOnnxModel over the shared serde-onnx IR, SKOnnxPredictor<F> implementing both prediction traits, a documented interpreter for the emitted operator subset (including ONNX-ML tree ensembles), typed validation errors, export/import round-trip tests and a three-way onnxruntime harness (36/36 import fixtures)Implemented
Model export/import coverageevery model crateSKExportable / SKImportable state for scalers, encoders, imputers, linear and SGD models, neighbours, SVMs, decision trees, forests, gradient boosting and bagging, with stable dotted tensor names, metadata versioning, dense/CSR parity and prediction round-trip testsImplemented
Native model import & retrainingsciencekit_interop, sciencekit_onnxSKNativeImport<F> rebuilds linear/logistic, SGD, tree, forest, scaler and k-means models from Safetensors, JSON or a documented ONNX subset, with structural format detection, exact tensor-set and class-table validation, typed rejections, continued fitting where the algorithm keeps its state, and a concurrency-safe conversion surfaceImplemented
Extended Safetensors & JSON debugsciencekit_interopBinary Safetensors persistence (metadata header, SKShardPlan sharding, in-place header/payload padding, optional Gzip/Brotli/Snappy compression) and deterministic JSON debug inspection over SKModelStateImplemented
Memory-mapped sources (memmap feature)sciencekit_interopZero-copy SKMappableSource/SKLazySource over raw binary, NumPy .npy and footer-indexed Arrow IPC files, with descriptor, length, endianness, alignment and truncation validationImplemented
OpenCL backend (opencl feature)sciencekit_gpu, sciencekit_gpu_openclFirst real device backend behind SKComputeBackend: ICD-loader device discovery, builder-only construction, device buffers with memory/capacity validation, explicit accounted transfers, runtime-compiled pairwise/GEMM/elementwise/tree kernels with CPU parity, concurrent dispatch and honest CPU fallbackImplemented
SKTelemetry / SKTelemetryPipelinesciencekit_telemetryOpt-in OTLP trace, log and metric export pipelines, resource attributes, sampling and bounded lifecycle (silent no-op default)Implemented
sciencekit CLI (workflows-cli)sciencekit_clifit, predict, transform, evaluate, export, inspect and run; versioned JSON/TOML/YAML workflow records, flags > environment > file > defaults resolution, dry-run, CSV/Parquet datasets, Safetensors/JSON/ONNX models and stable exit codesImplemented

One entry point · sciencekit

Every crate below stays independently consumable, but applications normally add the umbrella package. It re-exports the stable public surface under family modules and gives docs.rs and crates.io a single front page; it adds no logic.

ModuleOwning crate(s)Contents
sciencekit::preludecurated across familiesbuilder/fit/predict traits, data views, SKError, SKFloat and the headline estimators
sciencekit::mathsciencekit_mathkernels, pairwise distances, solvers and the math backend
sciencekit::preprocessingsciencekit_preprocessingscalers, one-hot, polynomial features
sciencekit::imputesciencekit_imputesimple, indicator and KNN imputers
sciencekit::linear_modelsciencekit_linear_modellinear, regularized, logistic and SGD models
sciencekit::neighbors, sciencekit::svmsciencekit_neighbors, sciencekit_svmnearest neighbors and support-vector machines
sciencekit::tree, sciencekit::ensemble, sciencekit::outliersciencekit_tree, sciencekit_ensemble, sciencekit_outliertrees, forests, boosting and isolation forests
sciencekit::cluster, sciencekit::decompositionsciencekit_cluster, sciencekit_decompositionclustering, PCA and SVD
sciencekit::model_selection, sciencekit::pipeline, sciencekit::metricssciencekit_model_selection, sciencekit_pipeline, sciencekit_metricssplitting, search, composition and evaluation
sciencekit::interopsciencekit_interop, sciencekit_onnxtabular sources, model formats and ONNX
sciencekit::accelerators, sciencekit::telemetry, sciencekit::ffisciencekit_gpu, sciencekit_gpu_opencl, sciencekit_telemetry, sciencekit_ffidevice contracts, OTLP export and the C ABI

Integration features (opencl, telemetry, onnx, polars, datafusion, memmap, parquet) are off by default and forward to the owning crate.

Continuous acceleration: every completed algorithm receives, in separate changes, a Python binding (sciencekit_python) and GPU backends (OpenCL → CUDA → ROCm) behind SKComputeBackend. The CPU is the default backend, always present.