Very Basic package make some usefull log transformation for scikit-learn
Project description
Scikit-transformers : Scikit-learn + Transformers
About
Basic package to enable usefull transformers in scikit-learn pipelines.
First transformer implemented is a LogTransformer, which is a simple wrapper around the numpy log function.
Installation
Using regular pip and venv tools :
python3 -m venv .venv
source .venv/bin/activate
pip install scikit-transformers
Usage
For a very basic usage :
import pandas as pd
from sktransf import LogTransformer
df = pd.DataFrame(
{ "a": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"b": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}
)
logger = LogTransformer()
logger.fit_transform(df)
df_transf = logger.transform(df)
Documentation
For generic use case, please refer to this notebook.
A complete documentation will be soon available here.
Contributing
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.
For more information, please refer to the contributing file.
License
Project details
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
File details
Details for the file scikit_transformers-0.2.0.tar.gz
.
File metadata
- Download URL: scikit_transformers-0.2.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.3 Linux/6.5.0-15-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f1483810e3f7af9877f380bd83621e9c00b7e33ecbf8fde9d71a2062d77f248 |
|
MD5 | d32189f9cd814dc7e065eb70785328cb |
|
BLAKE2b-256 | e975a29a0ef1f2b8c5b4ab6cf71aef36829d6f3855daeb4425694d540d83ba54 |
File details
Details for the file scikit_transformers-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: scikit_transformers-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.3 Linux/6.5.0-15-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a00ce9cd84f018d60d95175623ceb4ee9b512c1783a4333334d33f209845377 |
|
MD5 | d511e2d7b905e1aad077af0201b02fa7 |
|
BLAKE2b-256 | 79347ffb54e2fb60ae4aeaeeacee3310c5ecbee1fcaccece8335da41b7c633a4 |