Skip to main content

LGBtrainer helps you find hyper params for LGBM and simplifies the process of training the model and finding hyperparams.

  • Parameters:-
  1. train = it should be your train dataset(which is fit for training purpose)
  2. test = it should be your test dataset(which is fit for testing purpose)
  3. y_train = it should be your target column or values(same rows as train)
  4. cv = the number of splits or folds(it is used for both finding hyperparams + training the model)
  5. num_rounds = number of training rounds(it is used for both finding hyperparams + training the model)
  6. metric = only 'auc' and 'rmse' can be used(For now only these two are supported)
  7. objective = 'binary' or 'regression' or any other can be provided
  8. max_eval = number of evaluations performed for finding params(note:- larger number might take more time depending on size of dataset)
  • Example:-
-from LGBtrainer import Model
-model = Model(train, test, y_train, metric='auc', objective='binary', max_eval=3, cv=5)
-params = model.get_params()
-predictions = model.lgb_model(params)

Metadata

Release files for LGBtrainer 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LGBtrainer 0.1
File Size Uploaded
LGBtrainer-0.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for LGBtrainer 0.1
File Interpreter ABI Platform
LGBtrainer-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / LGBtrainer-0.1.tar.gz

Download URL LGBtrainer-0.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b237c29bfb50a431d9b575bdde07e93da19aa6f3ee173dd15ac9fd9d57026fdc
BLAKE2b-256 checksum
How to use checksums
3758ff119b8a5053babca7d718ad10ddf3fdce2194cc3cbbb175dd7c3638edba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

Release files / LGBtrainer-0.1-py3-none-any.whl

Download URL LGBtrainer-0.1-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e3be8eb774e6ec0b3872cdc8936dd8c81d5f2d9c3ae43f9b9d1374e3a2ab571
BLAKE2b-256 checksum
How to use checksums
02023e642efcbea056888148aa8b544030bdb401109491972713f4872f654a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page