- 15 Aug, 2022 1 commit
-
-
Akshita Prasanth authored
-
- 11 Aug, 2022 1 commit
-
-
James Lamb authored
* [python-package] add more type hints in basic.py * Booster handle is a c_void_p
-
- 10 Aug, 2022 1 commit
-
-
José Morales authored
[python-package] highlight the path a sample takes through a tree in `plot_tree` and `create_tree_digraph` (fixes #4784) (#5119) * highlight path in plot_tree * lint * rename x to example_case. support categorical features. add test * lint * check for exactly one row. test empty example_case * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * handle missing values in numeric splits * remove literal. add categorical split function * make categorical feature more important. lint * add enum. update categorical split. apply suggestions * update numeric split decision * lint * Update python-package/lightgbm/plotting.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 08 Aug, 2022 1 commit
-
-
Thomas J. Fan authored
MAINT Prefix NUMERIC_TYPES to make it a internal object
-
- 07 Aug, 2022 1 commit
-
-
James Lamb authored
-
- 03 Aug, 2022 2 commits
-
-
Nikita Titov authored
* Update README.rst * Update cuda_score_updater.cu Co-authored-by:James Lamb <jaylamb20@gmail.com>
-
Nikita Titov authored
-
- 30 Jul, 2022 2 commits
-
-
Miguel Ángel Cárdenas authored
* refactor:
🎨 add statuc typing to a subset of basic functions * refactor:🎨 add statuc typing to a subset of basic functions * revert black format on python basic functions file * style:🎨 updating typing for c_array function * branch rebase * fix number of changed lines * Update python-package/lightgbm/basic.py Co-authored-by:Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
James Lamb <jaylamb20@gmail.com> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
José Morales authored
* dump sorted parameter aliases * update lgb.check.wrapper_param * update _choose_param_value to look like lgb.check.wrapper_param * apply suggestions from review * reduce diff * move DumpAliases to config * remove unnecessary check * restore parameter check
-
- 29 Jul, 2022 1 commit
-
-
Thomas Aarholt authored
* Improve readme on experimental cuda usage * Revert header style change
-
- 28 Jul, 2022 2 commits
-
-
James Lamb authored
* [python-package] add more type hints on Booster * add return to Callable * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
James Lamb authored
-
- 21 Jul, 2022 1 commit
-
-
Scott Votaw authored
* Adjust LGBM_DatasetCreateFromSampledColumn to handle distributed data better * linting fix * switch to 1 API with breaking change * Fix pything native call * more python test fixes
-
- 10 Jul, 2022 1 commit
-
-
James Lamb authored
* [python-package] add type hints on Booster.update() * add __boost()
-
- 07 Jul, 2022 2 commits
-
-
James Lamb authored
-
James Lamb authored
-
- 03 Jul, 2022 1 commit
-
-
José Morales authored
add validate_features to refit
-
- 01 Jul, 2022 2 commits
-
-
James Lamb authored
* [python-package] remove inner function _construct_dataset() in LGBMModel.fit() * switch order
-
James Lamb authored
* [python-package] add type hints on predict() methods * formatting
-
- 28 Jun, 2022 1 commit
-
-
James Lamb authored
-
- 27 Jun, 2022 2 commits
-
-
José Morales authored
* allow custom weighing in sklearn api * add suggestions from review Co-authored-by:Nikita Titov <nekit94-08@mail.ru>
-
José Morales authored
* check feature names and order in predict with dataframe * slice df in predict to remove the target * scramble features * handle int column names * only change column order when needed * include validate_features param in booster and sklearn estimators * document validate_features argument * use all_close in preds checks and check for assertion error to compare different arrays * perform remapping and checks in cpp * remove extra logs * fixes * revert cpp * proposal * remove extra arg * lint * restore _data_from_pandas arguments * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * move data conversion to Predictor.predict * use Vector2Ptr Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 26 Jun, 2022 1 commit
-
-
Nikita Titov authored
Update basic.py
-
- 25 Jun, 2022 1 commit
-
-
James Lamb authored
* [python-package] add more type hints in engine.py * Update python-package/lightgbm/engine.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 23 Jun, 2022 1 commit
-
-
James Lamb authored
[python-package] add more hints on Booster
-
- 20 Jun, 2022 1 commit
-
-
Nikita Titov authored
Simplify params handling in `predict()` with `_choose_param_value()`
-
- 19 Jun, 2022 4 commits
-
-
James Lamb authored
-
James Lamb authored
* [python] preserve None in _choose_param_value() * Update python-package/lightgbm/basic.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
James Lamb authored
* [python-package] add type hints on cv() * remove inadvertent changes * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
david-cortes authored
[python-package] Use scikit-learn interpretation of negative `n_jobs` and change default to number of cores (#5105) * use joblib formula for negative n_jobs * correction for n_jobs calculation * use more robust cpu_count from joblib * change default n_jobs to number of cores * fix detection of num_threads under parameters * better handling of n_jobs at prediction time * fix incorrect usage of list.pop * correct pop/remove yet again * Update python-package/lightgbm/sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update tests/python_package_test/test_sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update tests/python_package_test/test_sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * add comments clarifying negative n_jobs * fix CI (code taken from PR comment) * change default to n_jobs=None in dask interface * corrections for handling of n_jobs * linter * corrections for predict-time n_jobs * linter * add more comments about n_jobs values * linter * more corrections * linter * linter * linter * Update python-package/lightgbm/compat.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update python-package/lightgbm/sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update python-package/lightgbm/sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update python-package/lightgbm/sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update python-package/lightgbm/sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * workaround for passing test about outputs with multiple threads * Update tests/python_package_test/test_sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update tests/python_package_test/test_sklearn.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 12 Jun, 2022 1 commit
-
-
James Lamb authored
-
- 05 Jun, 2022 2 commits
-
-
James Lamb authored
* [python] add more type hints in basic.py * Update python-package/lightgbm/basic.py Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
José Morales authored
* dont copy dataframe on rename * test with feature_name and 'auto'
-
- 31 May, 2022 1 commit
-
-
James Lamb authored
-
- 25 May, 2022 1 commit
-
-
James Lamb authored
-
- 24 May, 2022 1 commit
-
-
Nikita Titov authored
* Update basic.py * Update test_engine.py * Add return type annotation
-
- 22 May, 2022 1 commit
-
-
José Morales authored
[python-package] make a shallow copy when replacing categorical features with codes (fixes #4596) (#5225)
-
- 17 May, 2022 1 commit
-
-
José Morales authored
* allow using feature names when retrieving number of bins * unname vector * use default feature names when not defined * lint * apply suggestions * remove extra comma * add test with categorical feature * make feature names sync more transparent
-
- 30 Apr, 2022 1 commit
-
-
Nikita Titov authored
-
- 22 Apr, 2022 1 commit
-
-
Miguel Trejo Marrufo authored
[python-package] remove 'fobj' in favor of passing custom objective function in params (fixes #3244) (#5052) * feat: support custom metrics in params * feat: support objective in params * test: custom objective and metric * fix: imports are incorrectly sorted * feat: convert eval metrics str and set to list * feat: convert single callable eval_metric to list * test: single callable objective in params Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * feat: callable fobj in basic cv function Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: cv support objective callable Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * fix: assert in cv_res Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * docs: objective callable in params Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * recover test_boost_from_average_with_single_leaf_trees Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * linters fail Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * remove metrics helper functions Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * feat: choose objective through _choose_param_values Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: test objective through _choose_param_values Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: test objective is callabe in train Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: parametrize choose_param_value with objective aliases Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: cv booster metric is none Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * fix: if string and callable choose callable Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test train uses custom objective metrics Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: cv uses custom objective metrics Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * refactor: remove fobj parameter in train and cv Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * refactor: objective through params in sklearn API Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * custom objective function in advanced_example Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * fix whitespackes lint * objective is none not a particular case for predict method Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * replace scipy.expit with custom implementation Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * test: set num_boost_round value to 20 Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * fix: custom objective default_value is none Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * refactor: remove self._fobj Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * custom_objective default value is None Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * refactor: variables name reference dummy_obj Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * linter errors * fix: process objective parameter when calling predict Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com> * linter errors * fix: objective is None during predict call Signed-off-by:
Miguel Trejo <armando.trejo.marrufo@gmail.com>
-