Data frame support and feature traceability for `scikit-learn`.
Project description
sklearndf is an open source library designed to address a common need with scikit-learn: the outputs of transformers are numpy arrays, even when the input is a data frame. However, to inspect a model it is essential to keep track of the feature names.
To this end, sklearndf enhances scikit-learn’s estimators as follows:
- Preserve data frame structure:
Return data frames as results of transformations, preserving feature names as the column index.
- Feature name tracing:
Add additional estimator properties to enable tracing a feature name back to its original input feature; this is especially useful for transformers that create new features (e.g., one-hot encode), and for pipelines that include such transformers.
- Easy use:
Simply append DF at the end of your usual scikit-learn class names to get enhanced data frame support!
License
sklearndf is licensed under Apache 2.0 as described in the LICENSE file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sklearndf-2.4.2.tar.gz.
File metadata
- Download URL: sklearndf-2.4.2.tar.gz
- Upload date:
- Size: 155.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
589fa7a588b279d3ea774995ecdf6084ebc236a0518cf3c78918ca8ac358ae60
|
|
| MD5 |
ad9a7b816488d65123612c24e35a2307
|
|
| BLAKE2b-256 |
32d5195f3cabaa74e71f2a17ffb313c69f4a913b41be8e7001822ea621a4bd5b
|
File details
Details for the file sklearndf-2.4.2-py3-none-any.whl.
File metadata
- Download URL: sklearndf-2.4.2-py3-none-any.whl
- Upload date:
- Size: 76.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c7afea6a34370658b2b232bf90c7f494c4e1fb304fa7ff9364c85894faba56a
|
|
| MD5 |
296545b8d975ad3ce502b5d4440d16e8
|
|
| BLAKE2b-256 |
260f2a4ff38e9de6f13ae662531e82d73ae1522df925828dde39f9644b7b03a6
|