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
Hashes for sklearndf-2.3rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59951d6f587b7f7f52cd15ec677c2fda015e3844c0a0e82ea9746d00512d4db1 |
|
MD5 | 5eecc2e2f019e1e7c67eb75e51a71bbd |
|
BLAKE2b-256 | c38107cf5b1be3e0d28c8b8d007dc1bf16e918485899903fe0b70761ee468cc3 |