Skip to main content

A small package for all useful ML things

Project description

Kowalsky, analysis!

A simple package for handful ML things and more.

What's inside?

  1. analysis - method for evaluation of specified model with given dataframe. With export_test_set=False it exports ready for submission predictions.

  2. df - working with dataframe:

    • corr - sort all correlated features.
    • handle_outliers - fill or drop columns with outliers.
    • log_transform - transform columns with log function.
    • group_by_mean - make additional columns with aggregated mean
    • group_by_max - make additional columns with aggregated max
    • group_by_min - make additional columns with aggregated min
    • scale - scale columns with Standard of MinMax scalers
  3. kag:

    • submit - make submit-file for kaggle based on sample
  4. metrics:

    • rmse - RMSE scorer
    • rmsle - RMSLE scorer
  5. opt - handful methods for working with optuna:

    • optimize - optimize model with given dataframe

Example:

!pip install kowalsky --upgrade
from kowalsky.opt import optimize
optimize('RFR',
         path='../input/project/feed.csv',
         scorer='acc',
         y_label='y_label',
         trials=3000)

Avaliable models:

Gradient Boosts

    'XGBR': XGBRegressor
    'XGBC': XGBClassifier
    'LGBR': LGBMRegressor
    'LGBC': LGBMClassifier

Trees

    'RFR': RandomForestRegressor
    'RFC': RandomForestClassifier
    'DTR': DecisionTreeRegressor
    'DTC': DecisionTreeClassifier
    'ETR': ExtraTreeRegressor
    'ETC': ExtraTreeClassifier

Ensemble

    'BC': BaggingClassifier
    'BR': BaggingRegressor
    'ADAR': AdaBoostRegressor
    'ADAC': AdaBoostClassifier

KNeighbors

    'KNC': KNeighborsClassifier
    'KNR': KNeighborsRegressor

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

kowalsky-0.0.6.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file kowalsky-0.0.6.tar.gz.

File metadata

  • Download URL: kowalsky-0.0.6.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.2

File hashes

Hashes for kowalsky-0.0.6.tar.gz
Algorithm Hash digest
SHA256 904bcb2f14a28e7145c2168c076d1045eee57b3b23165176e1ced4a1d207680a
MD5 2b4ed0e1978ac75912ca8042e4e44263
BLAKE2b-256 04ec8f00608b32b6a0203011a6670ce0c5c8602c0c85c71f7871555d9497fae8

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