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

pip install mlgear

For development:

# Install poetry if you don't have it
pip install poetry

# Install dependencies
poetry install

# Build the package
poetry build

# Publish to PyPI
poetry publish

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.5.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

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

mlgear-0.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlgear-0.5.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.0 Darwin/23.3.0

File hashes

Hashes for mlgear-0.5.tar.gz
Algorithm Hash digest
SHA256 622a75845f5aeed53e89b3439939d995ce7fab5248befe32708dc18502710830
MD5 c220af8597a8be0ceac40ac7c83bed2d
BLAKE2b-256 026334e87e27f8afe8843de7f79990792e5d1ac338d89df3c98fe35267a79eb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlgear-0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.11.0 Darwin/23.3.0

File hashes

Hashes for mlgear-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f243c047df8cb91e142a164eeedf19c87b144260ddd99b2b985a10c09bc5d74d
MD5 f83f53cf29a43c5a900608b07f2aee81
BLAKE2b-256 df270cc599a7f9186d2257f83eef18fc03de10b7e1d5b8bdc6305cb97d2ca771

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