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
Metadata
Release files for mlgear 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlgear-0.5.tar.gz | 8.0 kB | Without provenance | Details for mlgear-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlgear-0.5-py3-none-any.whl | Python 3 | none | any | Details for mlgear-0.5-py3-none-any.whl |
Total release size: 17.9 kB
Release files / mlgear-0.5.tar.gz
| Download URL | mlgear-0.5.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
622a75845f5aeed53e89b3439939d995ce7fab5248befe32708dc18502710830
|
|
BLAKE2b-256 checksum How to use checksums |
026334e87e27f8afe8843de7f79990792e5d1ac338d89df3c98fe35267a79eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.11.0 Darwin/23.3.0
|
Release files / mlgear-0.5-py3-none-any.whl
| Download URL | mlgear-0.5-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f243c047df8cb91e142a164eeedf19c87b144260ddd99b2b985a10c09bc5d74d
|
|
BLAKE2b-256 checksum How to use checksums |
df270cc599a7f9186d2257f83eef18fc03de10b7e1d5b8bdc6305cb97d2ca771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.11.0 Darwin/23.3.0
|
Security for mlgear 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.