Data preprocessing lib
Project description
snaplib
A simple data preprocessing tools.
user guide
Kaggle Notebook
Classification
https://www.kaggle.com/code/artyomkolas/titanic-snaplib-classification/notebook
Regression
https://www.kaggle.com/code/artyomkolas/housing-prices-with-snaplib/notebook
PyPi
!pip install snaplib
from snaplib.snaplib import Snaplib
sl = Snaplib()
- sl.nan_info
- sl.nan_plot
- sl.cleane
- sl.recover_data - NaN imputing with ML
- sl.dummied
- sl.encode_dataframe
- sl.decode_dataframe
- sl.train_test_split_balanced
- sl.k_folds_split
For one and list of algorithms with bagging
- sl.cross_val
- sl.features_selection_regr
- sl.features_selection_clsf
- sl.fit_stacked
- sl.save_stack
- sl.load_stack
- sl.predict_stacked
doc
print(sl.recover_data.__doc__)
Imputing of missing values (np.nan) in tabular data, not TimeSeries.
Use case:
df = Snaplib().recover_data(df, device="cpu", verbose=True)
device must be "cpu" or "gpu". Sometime small datasets work faster with cpu.
verbose = True algorithm runs cross validation tests and prints results of tests for decision making.
discrete_columns = ['col_name_1', 'col_name_2', 'col_name_3', 'etc']
TESTS on https://www.kaggle.com/code/artyomkolas/nan-prediction-in-progress/notebook
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 snaplib-0.4.96.tar.gz.
File metadata
- Download URL: snaplib-0.4.96.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.9.6 requests/2.28.1 setuptools/58.1.0 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bb50b0da28b39fd9c94e2e6b85ef1d7b94c82a03887b0d05c03ea73b669d8fc
|
|
| MD5 |
cc4b2787cb710222d8bfebb1ede20db7
|
|
| BLAKE2b-256 |
8fa17c76f3df569213130496099e94ec62d90f9c94c1732a3129313bfca1c54d
|
File details
Details for the file snaplib-0.4.96-py3-none-any.whl.
File metadata
- Download URL: snaplib-0.4.96-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.9.6 requests/2.28.1 setuptools/58.1.0 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ed2591a2c09849a90547d31489d670f11dac65fc2164857b1ec335d74165b7c
|
|
| MD5 |
d98ff8a63b8dee82b3d8e17eff39cfbe
|
|
| BLAKE2b-256 |
e3bbeba72470b080999d707f1ac7acb481d390c020f550bbb5d3a71317e67ab6
|