Skip to main content

Utility scripts for machine learning

Project description

MLGear

Some utility functions to make ML with Python / Pandas / sklearn even easier

Example Usage

from mlgear.cv import run_cv_model
from mlgear.models import runLGB
from mlgear.metrics import rmse

lgb_params = {'application': 'regression',
              'boosting': 'gbdt',
              'metric': 'rmse',
              'num_leaves': 15,
              'learning_rate': 0.01,
              'bagging_fraction': 0.9,
              'feature_fraction': 0.9,
              'verbosity': -1,
              'seed': 1,
              'lambda_l1': 1,
              'lambda_l2': 1,
              'early_stop': 20,
              'verbose_eval': 10,
              'num_rounds': 500,
              'num_threads': 3}

results = run_cv_model(train, test, target, runLGB, lgb_params, rmse)

Installation

pip3 install mlgear

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

mlgear-0.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

mlgear-0.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file mlgear-0.4.tar.gz.

File metadata

  • Download URL: mlgear-0.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.10

File hashes

Hashes for mlgear-0.4.tar.gz
Algorithm Hash digest
SHA256 e535bc1792f15b2190fdfd59cb5b2c4dc8a2e7b1625b9146773a6ff0fb475e8c
MD5 d9e590520ebc657cb59fb21b50d64625
BLAKE2b-256 b2d3eafb3412bc7d86fcfde334f7e5bad6f918316642bd12ab4713cfa473d7dd

See more details on using hashes here.

File details

Details for the file mlgear-0.4-py3-none-any.whl.

File metadata

  • Download URL: mlgear-0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.10

File hashes

Hashes for mlgear-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4cac4af9926560c67b3a8d3376b9472be59e2c8ceee9c8f1889ba7fe20d36b33
MD5 b0cb4146546e3286009c2ae7e0d52ed5
BLAKE2b-256 cc075a406606744fa948a831b97a9c7d8c0010d7e22e836b759e10c622bb319e

See more details on using hashes here.

Supported by

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