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
Metadata
Release files for snaplib 0.4.96
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snaplib-0.4.96.tar.gz | 20.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snaplib-0.4.96-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / snaplib-0.4.96.tar.gz
| Download URL | snaplib-0.4.96.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bb50b0da28b39fd9c94e2e6b85ef1d7b94c82a03887b0d05c03ea73b669d8fc
|
|
BLAKE2b-256 checksum How to use checksums |
8fa17c76f3df569213130496099e94ec62d90f9c94c1732a3129313bfca1c54d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / snaplib-0.4.96-py3-none-any.whl
| Download URL | snaplib-0.4.96-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ed2591a2c09849a90547d31489d670f11dac65fc2164857b1ec335d74165b7c
|
|
BLAKE2b-256 checksum How to use checksums |
e3bbeba72470b080999d707f1ac7acb481d390c020f550bbb5d3a71317e67ab6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|