Find LGBM Hyperparams and train the model
Project description
LGBtrainer helps you find hyper params for LGBM and simplifies the process of training the model and finding hyperparams.
- Parameters:-
- train = it should be your train dataset(which is fit for training purpose)
- test = it should be your test dataset(which is fit for testing purpose)
- y_train = it should be your target column or values(same rows as train)
- cv = the number of splits or folds(it is used for both finding hyperparams + training the model)
- num_rounds = number of training rounds(it is used for both finding hyperparams + training the model)
- metric = only 'auc' and 'rmse' can be used(For now only these two are supported)
- objective = 'binary' or 'regression' or any other can be provided
- 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
LGBtrainer-0.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file LGBtrainer-0.1.tar.gz
.
File metadata
- Download URL: LGBtrainer-0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b237c29bfb50a431d9b575bdde07e93da19aa6f3ee173dd15ac9fd9d57026fdc
|
|
MD5 |
7119eb771f56abbfe301546bee4f52b5
|
|
BLAKE2b-256 |
3758ff119b8a5053babca7d718ad10ddf3fdce2194cc3cbbb175dd7c3638edba
|
File details
Details for the file LGBtrainer-0.1-py3-none-any.whl
.
File metadata
- Download URL: LGBtrainer-0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9e3be8eb774e6ec0b3872cdc8936dd8c81d5f2d9c3ae43f9b9d1374e3a2ab571
|
|
MD5 |
ac2f813f307182a8f2cea7dc85604441
|
|
BLAKE2b-256 |
02023e642efcbea056888148aa8b544030bdb401109491972713f4872f654a34
|