Sklearn Utilities
Utilities for scikit-learn.
Installation
Install this via pip (or your favourite package manager):
pip install sklearn-utilities
API
See Docs for more information.
EstimatorWrapperBase: base class for wrappers. Redirects all attributes which are not in the wrapper to the wrapped estimator.DataFrameWrapper: tries to convert every estimator output to a pandas DataFrame or Series.FeatureUnionPandas: aFeatureUnionthat works with pandas DataFrames.IncludedColumnTransformerPandas,ExcludedColumnTransformerPandas: select columns by name.AppendPredictionToX: appends the prediction of y to X.AppendXPredictionToX: appends the prediction of X to X.DropByNoisePrediction: drops columns which has high importance in predicting noise.DropMissingColumns: drops columns with missing values above a threshold.DropMissingRowsY: drops rows with missing values in y. Usefeature_engine.DropMissingDatafor X.IntersectXY: drops rows where the index of X and y do not intersect. Use withfeature_engine.DropMissingData.ReindexMissingColumns: reindexes columns of X intransform()to match the columns of X infit().ReportNonFinite: reports non-finite values in X and/or y.IdTransformer: a transformer that does nothing.RecursiveFitSubtractRegressor: a regressor that recursively fits a regressor and subtracts the prediction from the target.SmartMultioutputEstimator: aMultiOutputEstimatorthat supports tuple of arrays inpredict()and supports pandasSeriesandDataFrame.until_event(),since_event(): calculates the time since or until events (Series[bool])ComposeVarEstimator: composes mean and std/var estimators.DummyRegressorVar:DummyRegressorthat returns 1.0 for std/var.TransformedTargetRegressorVar:TransformedTargetRegressorwith std/var support.StandardScalerVar:StandardScalerwith std/var support.EvalSetWrapper,CatBoostProgressBarWrapper: wrapper that passeseval_settofit()usingtrain_test_split(), mainly forCatBoost. The latter shows progress bar (usingtqdm) as well. Useful for early stopping. For LightGBM, seelightgbm-callbacks.
sklearn_utilities.dataset
add_missing_values(): adds missing values to a dataset.
sklearn_utilities.torch
PCATorch: faster PCA using PyTorch with GPU support.
sklearn_utilities.torch.skorch
SkorchReshaper,SkorchCNNReshaper: reshapes X and y fornn.Linearandnn.Conv1d/2drespectively. (Fornn.Conv2d, usesnp.sliding_window_view().)AllowNaN: wraps a loss module and assign 0 to y and y_hat for indices where y contains NaN inforward()..
See also
Metadata
Release files for sklearn-utilities 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sklearn_utilities-1.0.0.tar.gz | 32.9 kB | With provenance | Details for sklearn_utilities-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sklearn_utilities-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sklearn_utilities-1.0.0-py3-none-any.whl |
Total release size: 73.1 kB
Release files / sklearn_utilities-1.0.0.tar.gz
| Download URL | sklearn_utilities-1.0.0.tar.gz |
|---|---|
| Size | 32.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a88db63281373644fb99288822217240e3482a1708b5ecd4e86dd224f40836dc
|
|
BLAKE2b-256 checksum How to use checksums |
4156c611a65ad66f934c13a9475454c7ca29ab2d9fe920d514ce0f438c17a662
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Transparency logRelease files / sklearn_utilities-1.0.0-py3-none-any.whl
| Download URL | sklearn_utilities-1.0.0-py3-none-any.whl |
|---|---|
| Size | 40.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06844f9320eff1bd49a69c8c8e1f00d2b567e169025134fb488f80546dab63ae
|
|
BLAKE2b-256 checksum How to use checksums |
5116caa82a2d6d1d4be7ead488da3108d467661b3eede965d7e5821a9500fe9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Transparency logSecurity for sklearn-utilities 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sklearn_utilities-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.