Граф коммитов

2876 Коммитов

Автор SHA1 Сообщение Дата
James Lamb 2f27d4b226
[ci][docs] use miniforge for readthedocs builds (fixes #4954) (#4957)
* [ci] [docs] use mamba for readthedocs builds (fixes #4954)

* update docs

* simplify build script and add docs flag to gitignore

* exit with non-0 if build fails

* update CI job

* add doxygen

* remove outdated requirement_base.txt reference

* use conda create instead of conda env create

* fix conda create flags

* add nodefaults to env.yml

* Update docs/README.rst

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* try to fix check-docs CI job

* additional changes

* switch from mamba to miniforge

* simplify docker command and fix issues in local build script

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* update docs and conda

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-02-19 06:29:56 +03:00
Nikita Titov d0467f5896
[ci] Enclose Python versions in quotes in config yml files (#5015)
* Update .appveyor.yml

* Update .vsts-ci.yml
2022-02-19 06:24:16 +03:00
James Lamb 9e73cee8ae
[R-package] prefer params to keyword argument in `lgb.train()` (#5007)
* [R-package] prefer params to keyword argument in lgb.train()

* make test stricter

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-02-18 04:09:58 +03:00
Nikita Titov cb8c61e4d3
[python] Start supporting Python 3.10 (#4893)
* Update setup.py

* Update cuda.yml

* Update static_analysis.yml

* Update linkchecker.yml

* Update .appveyor.yml

* Update .vsts-ci.yml

* Update python_package.yml

* Update .vsts-ci.yml

* Update python_package.yml

* Update cuda.yml

* Update static_analysis.yml

* Update linkchecker.yml

* Update .vsts-ci.yml

* Update .appveyor.yml

* re-arange Python version
2022-02-18 03:36:41 +03:00
James Lamb 717631af18
[docs] clarify that custom eval functions are not only used on training data (#5011) 2022-02-17 13:38:25 -06:00
david-cortes 83a41dabec
use braced delete where appropriate (#4984) 2022-02-18 00:32:10 +08:00
chjinche c61f0d2eb3
pass train dataset parser config to valid dataset loading parser (#4985) 2022-02-18 00:31:28 +08:00
david-cortes 9259a5318c
[R-package] remove behavior where lightgbm() saves model to disk (#4974)
* do not produce model files on disk by default

* remove 'save_name' argument from 'lightgbm()'
2022-02-17 01:39:11 +03:00
Nikita Titov 057ba07801
[docs] document rounding behavior of floating point numbers in categorical features (#5009) 2022-02-17 01:28:54 +03:00
Akshita Dixit d31346f6c2
Change docs for feval (#5002) 2022-02-16 20:50:44 +08:00
José Morales 9fc348af6f
[python-package] make record_evaluation compatible with cv (fixes #4943) (#4947)
* make record_evaluation compatible with cv

* test multiple metrics in cv

* lint

* fix cv with train metric. save stdv as well

* always add dataset prefix to cv_agg

* remove unused function
2022-02-16 02:23:04 +03:00
Yu Shi 2d1caf140a document rounding behavior of floating point numbers in categorical features 2022-02-14 16:23:28 +00:00
PyVCEchecker 800e1e243f
[python] enforce a floor of Python 3.6 (fixes #5004) (#5006) 2022-02-14 18:00:27 +03:00
Nikita Titov 15266f1d61
Update versions of LightGBM dependencies (#4935)
* update deps

* pin eigen

* add hidden bazel files to `.Rbuildignore`

* more verbose test logs

* more verbosity in logs for other tasks

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* revert fast_double_parser update

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* empty commit

* revert tests verbosity

* test: swap compilers

* empty commit 1

* empty commit 2

* empty commit 3

* empty commit 4

* Revert "test: swap compilers"

This reverts commit e77b0013e9.
2022-02-14 00:09:21 +03:00
Nikita Titov a3e073ad3a
[tests][python] remove compatibility code for old versions in tests (#4978)
* Update test_dask.py

* Update test_engine.py

* Update test_sklearn.py

* Update test_sklearn.py

* Update test_sklearn.py

* Update test_sklearn.py

* Update test_sklearn.py

* Update test_sklearn.py

* Update test_engine.py

* Update test_sklearn.py

* Update test_sklearn.py

* Update test_sklearn.py
2022-02-13 00:47:28 +03:00
Nikita Titov 1862d7f53b
[ci] use conda-forge in Windows CI jobs and Docker images (#4993)
* Update dockerfile-python

* Update README.md

* Update dockerfile.gpu

* Update dockerfile.gpu

* Update .vsts-ci.yml

* Update .appveyor.yml

* Update test_windows.ps1
2022-02-12 04:08:37 +03:00
Nikita Titov 49a10c3222
[docs] document `conda-forge` channel preference over `default` one and describe possible workaround for OpenMP conflicts in FAQ (#4994)
* Update README.rst

* Update FAQ.rst

* Python FAQ entry about conda-forge

* fix syntax
2022-02-12 03:50:39 +03:00
Nikita Titov 6f8afcd83a
[ci] use `latest` tag again for Ubuntu 14 CI Docker (#5001) 2022-02-12 03:42:37 +03:00
Nikita Titov 904b2d5158
Add Nyoka to README (#4992) 2022-02-11 04:16:29 +03:00
James Lamb 3500cb67b9
[ci] use conda-forge in Linux and macOS CI jobs (#4953)
* [ci] use conda-forge in CI jobs (fixes #4948)

* comment out more jobs

* try reverting graphviz patch, running more cuda jobs

* get graphviz from PyPI and try removing some patches for r-lintr

* start running appveyor again

* use conda-forge if using conda

* fix commands

* conda install graphviz

* try newer openmp

* pin below openmp 11.x

* focus on gpu task

* trying to narrow down error

* maybe gcc11 is the issue

* start adding other tests back

* pin openmp too

* maybe need to pin to gcc less than 10.x

* pin libgfortran and libstdcxx as well

* pin to gcc 9.3.0

* move constraints up to initial environment

* add all CI jobs back

* try installing python-graphviz separately

* try new lightgbm/vsts-agent image

* fix typo

* test if pinning gcc for linux gpu_source build is still necessary

* ok yes, pinning gcc is necessary

* test if Linux gpu_source works with Python 3.9.6

* no special exception for Linux gpu_source job

* pin to Python 3.9.6 in Linux gpu_source

* try explicitly asking for libstdcxx-ng for every linux build

* swap compilers

* switch compilers back

* revert accidental whitespace change

* comment out CI

* try Linux gpu_source with different Python versions

* Revert "try Linux gpu_source with different Python versions"

This reverts commit f6f63cbb9b.

* Revert "comment out CI"

This reverts commit ece191f01e.

* remove libxml2 install, change CONDA path

* avoid installing conda in rchk job

* empty commit 1

* empty commit 2

* empty commit 3

* empty commit 4

* add more verbose logging around installation of python-graphviz

* empty commit 1

* get mamba info

* get more conda info

* add another mamba info call

* allow for other macOS environments in GHA configuration

* Revert "allow for other macOS environments in GHA configuration"

This reverts commit a3c7a19926.

* get more logs from mamba

* get Build.ArtifactsStagingDirectory

* get more logs and try to force re-installing everything

* clean cache after every step

* remove --update-all and make logs less verbose

* remove more print statements and uncomment jobs

* test if conda-clean issue fixes segfaults for gpu_source

* pin python version for gpu_source

* empty commit 1

* use miniforge instead

* empty commit 1

* Apply suggestions from code review

* bring workarounds back

* remove duplicated graphviz system-wide installation (reverts #4095, #4097, #4238)

* empty commit 1

* empty commit 2

* empty commit 3

* empty commit 4

* empty commit 5

* empty commit 6

* empty commit 7

* empty commit 8

* empty commit 9

* empty commit 10

* empty commit 10

* empty commit 10

* empty commit 10

* empty commit 11

* one more try

* try to downgrade Python version for Linux GPU job

* swap compilers

* Revert "swap compilers"

This reverts commit f04dc27b17.

Co-authored-by: Nikita Titov <nekit94-12@hotmail.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-02-11 03:56:35 +03:00
James Lamb 0688f471fc
[ci] upgrade to R 4.1.2 in CI, change approach to macOS-latest R CI builds (fixes #4988) (#4989)
* [ci] manually create symlinks to R entrypoints on macOS (fixes #4988)

* exclude non-R CI jobs

* upgrade to R 4.1.2

* get logs for R install

* pin R 4.1.x jobs to macOS-10.15

* update to R 4.1.2 on Windows

* allow for non-latest macOS builds in GHA configuration

* fix prefix check

* fix config check

* more direct check for mac version

* uncomment other CIs

* update R version in CI job names
2022-01-31 20:45:53 -06:00
Nikita Titov 0075814f02
[ci] bump CUDA version from `11.5.0` to `11.5.1` at CI (#4967)
* Revert "[ci] ignore certificates for kitware apt channel in CUDA jobs (fixes #4646) (#4648)"

This reverts commit 10e0edc453.

* update cuda at CI
2022-01-23 15:39:41 +03:00
Miguel Trejo Marrufo e6a2f7162c
[python-package] support customizing Dataset creation in Booster.refit() (fixes #3038) (#4894)
* feat: refit additional kwargs for dataset and predict

* test: kwargs for refit method

* fix: __init__ got multiple values for argument

* fix: pycodestyle E302 error

* refactor: dataset_params to avoid breaking change

* refactor: expose all Dataset params in refit

* feat: dataset_params updates new_params

* fix: remove unnecessary params to test

* test: parameters input are the same

* docs: address StrikeRUS changes

* test: refit test changes in train dataset

* test: set init_score and decay_rate to zero
2022-01-22 23:17:16 +03:00
Christian Lorentzen f85dfa2c40
reduce duplicate computation in poisson, gamma, and tweedie objectives (#4950)
* ENH save computations of exp in objectives

* CLN missing declaration
2022-01-20 03:27:06 +03:00
James Lamb a06fadfb7a
[dask] add support for custom objective functions (fixes #3934) (#4920)
* add test for custom objective with regressor

* add test for custom binary classification objective with classifier

* isort

* got tests working for multiclass

* update docs

* train deeper model for classifier

* Apply suggestions from code review

Co-authored-by: José Morales <jmoralz92@gmail.com>

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* update multiclass tests

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* fix multiclass probabilities

* linting

Co-authored-by: José Morales <jmoralz92@gmail.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-01-17 23:30:26 +03:00
Nikita Titov 4aaeb22932
[docs] minor docs improvements (#4938)
* Update README.rst

* Update FAQ.rst
2022-01-09 16:58:00 +03:00
Nikita Titov fc4fee09f7
[ci] use -1 for exit code in case of failure (#4939) 2022-01-08 21:23:56 -06:00
Nikita Titov 3b1f16d1a8
[tests][R-package] use one `#` symbol for comments (#4940)
* Update lgb.cv.R

* Update test_learning_to_rank.R

* Update test_basic.R
2022-01-08 21:23:19 -06:00
Nikita Titov a6d1f198a4
[R-package] Fix custom objective detection in `print.lgb.Booster()` (#4941)
* Update lgb.Booster.R

* Update lgb.cv.R

* Update lgb.train.R

* Update lgb.Booster.R
2022-01-08 21:22:45 -06:00
Nikita Titov db045f4030
[ci] bump CUDA version from 11.4.2 to 11.5.0 at CI (#4937) 2022-01-09 02:39:22 +03:00
文佳鹏 305369ddfd
fix gpu allocate memory overflow (#4928) 2022-01-08 10:47:28 +08:00
Nikita Titov 5b42c2c3bb
[ci] Bump version for development (#4933)
* Update .appveyor.yml

* Update VERSION.txt

* Update cran-comments.md

* Auto-update configure

Co-authored-by: GitHub Actions Bot <githubactionsbot@users.noreply.github.com>
2022-01-07 22:05:05 +03:00
James Lamb 1d8bfd8c9b
[R-package] respect 'verbose' argument in lgb.cv() (fixes #4667) (#4903)
* fixes

* revert debugging code

* add test

* check for LightGBM explicitly

* empty commit

* revert unnecessary line deletion

* respect verbose everywhere and update params for constructted dataset

* Update R-package/R/lgb.Dataset.R

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-01-05 18:55:39 -06:00
shiyu1994 100a10dafc
apply patch for R4.2 on Windows (#4923) 2022-01-05 11:05:44 +08:00
James Lamb 2e2571927f
[R-package] [docs] fix calculation of R test coverage (fixes #4919) (#4922)
* [R-package] [docs] fix calculation of R test coverage (fixes #4919)

* use quotes

* use in_covr() instead of env variable

* Update R-package/README.md

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* check that covr exists

* add covr to suggests

* use R_COVR environment variable

* Update R-package/tests/testthat/test_lgb.unloader.R

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-01-04 19:59:45 -06:00
James Lamb ac821f0c96
[R-package] respect aliases for objective and metric and lgb.train() and lgb.cv() (#4913)
* [R-package] respect aliases for objective and metric

* move eval code closer to eval processing

* remove unnecessary diff

* Update R-package/tests/testthat/test_basic.R
2022-01-04 19:53:23 -06:00
Yaqub Alwan af5b40e1f6
[python] raise an informative error instead of segfaulting when custom objective produces incorrect output (#4815)
* fix for bad grads causing segfault

* adjust checking criteria to properly reflect reality of multi-class classifiers

* fix styling

* Line break before operator

* Update python-package/lightgbm/basic.py

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* Update python-package/lightgbm/basic.py

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* add a note to the C-API docs

* rearrange text s;ightly

* add some tests to python package

* Update include/LightGBM/c_api.h

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* PR comments

* match argument is a regex and our expression has brackets ..

* rework tests

* isorting imports

* updating test to relfect that the python APi does not take pres/labels as a fobj function

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-12-30 13:12:00 +08:00
James Lamb a55ff1831d
[R-package] remove uses of testthat::context() in tests (#4915) 2021-12-29 21:13:44 -06:00
James Lamb ab78829198
[R-package] fix handling of duplicate parameters (fixes #4521) (#4914)
* [R-package] fix handling of duplicate parameters (fixes #4521)

* add gsub stuff back in for now
2021-12-30 02:53:34 +03:00
James Lamb f9053abbad
[R-package][tests] remove uses of `testthat::expect_is()` (#4916) 2021-12-30 02:27:28 +03:00
Michael Mayer aa647d478f
[R-package] added argument eval_train_metric to lgb.cv() (fixes #4911) (#4918)
* added argument eval_train_metric

* remove unnecessary whitespace

* removed further trailing whitespace

* move new argument to the last position

* update R docu

* unit tests for eval_train_metric

* Update R-package/tests/testthat/test_basic.R

Co-authored-by: James Lamb <jaylamb20@gmail.com>

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2021-12-29 14:10:46 -06:00
Nikita Titov ce486e5b45
[python] remove `early_stopping_rounds` argument of `train()` and `cv()` functions (#4908) 2021-12-26 17:20:49 +03:00
James Lamb cace5bbd8e
[R-package] update parameter 'verbosity' based on keyword arg 'verbose' (#4899)
* [R-package] update parameter 'verbosity' based on keyword arg 'verbose'

* add tests
2021-12-23 23:59:30 +03:00
xuchuanyin 2ef3cb81ed
clear memory of sample data right after BinMapper is constructed to save memory (#4890)
Sample data is useless after BinMapper is constructed, but the corresponding memory is still there before feature extraction is finished.
2021-12-23 14:47:33 +08:00
Nikita Titov e4c0ca5f5d
[python] remove `evals_result` argument of `train()` function (#4882) 2021-12-23 04:57:09 +03:00
James Lamb 34b7484288
[R-package] fix CVBooster reset_parameter() method (fixes #4900) (#4901)
* [R-package] fix CVBooster reset_parameter() method (fixes #4900)

* make it clear that there should be one booster per fold
2021-12-22 09:47:48 -06:00
James Lamb 0df38106b4
[R-package] remove unnecessary comments and fix typos in comments (#4902) 2021-12-22 04:37:56 +03:00
James Lamb 7b10baffb6
[R-package] reduce verbosity in tests using lgb.train() (#4896)
* [R-package] reduce verbosity in tests using lgb.train()

* Update R-package/tests/testthat/test_lgb.Booster.R
2021-12-20 19:25:23 -06:00
José Morales 8a34b1af2d
[tests][python-package] change boston dataset to synthetic dataset in tests that don't check score (#4895)
* change boston dataset to synthetic dataset in tests that don't evaluate score

* format imports
2021-12-21 02:41:39 +03:00
Nikita Titov 8e729af38d
[python] reset storage in record evaluation callback each time before starting training (#4885)
* Update test_sklearn.py

* Update python_package.yml

* Update python_package.yml

* Update callback.py

* Update callback.py
2021-12-18 17:30:35 +03:00