Skip to main content

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()
  1. sl.nan_info
  2. sl.nan_plot
  3. sl.cleane
  4. sl.recover_data - NaN imputing with ML
  5. sl.dummied
  6. sl.encode_dataframe
  7. sl.decode_dataframe
  8. sl.train_test_split_balanced
  9. sl.k_folds_split

For one and list of algorithms with bagging

  1. sl.cross_val
  2. sl.features_selection_regr
  3. sl.features_selection_clsf
  4. sl.fit_stacked
  5. sl.save_stack
  6. sl.load_stack
  7. 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

snaplib-0.4.96.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snaplib-0.4.96-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

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

Hashes for snaplib-0.4.96.tar.gz
Algorithm Hash digest
SHA256 8bb50b0da28b39fd9c94e2e6b85ef1d7b94c82a03887b0d05c03ea73b669d8fc
MD5 cc4b2787cb710222d8bfebb1ede20db7
BLAKE2b-256 8fa17c76f3df569213130496099e94ec62d90f9c94c1732a3129313bfca1c54d

See more details on using hashes here.

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

Hashes for snaplib-0.4.96-py3-none-any.whl
Algorithm Hash digest
SHA256 2ed2591a2c09849a90547d31489d670f11dac65fc2164857b1ec335d74165b7c
MD5 d98ff8a63b8dee82b3d8e17eff39cfbe
BLAKE2b-256 e3bbeba72470b080999d707f1ac7acb481d390c020f550bbb5d3a71317e67ab6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page