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

2643 Коммитов

Автор SHA1 Сообщение Дата
James Lamb 417ba19217
[docs] Clarify the fact that predict() on a file does not support saved Datasets (fixes #4034) (#4545)
* documentation changes

* add list of supported formats to error message

* add unit tests

* Apply suggestions from code review

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

* update per review comments

* make references consistent

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-24 21:33:13 -05:00
Xavier Dupré 11d7608f2d
[python] add parameter object_hook to method dump_model (#4533)
* add parameter object_hook to function dump_model (python API)

* eol

* fix syntax

* lint

* better documentation

* Update python-package/lightgbm/basic.py

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

Co-authored-by: xavier dupré <xavier.dupre@gmail.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-24 01:48:16 +03:00
James Lamb 4db10d86dc
factor out .size() checks in GetDataType() (#4541)
* factor out .size() checks in GetDataType()

* Update src/io/parser.cpp

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

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-22 09:54:21 -05:00
Nikita Titov 4e18c60b4d
[ci] Check for MM_PREFETCH and MM_MALLOC not only in CRAN builds (#4540) 2021-08-21 20:03:37 -05:00
Prince Canuma 8a90ea3f26
[doc] Add link to Neptune hyperparam tuning guide (#4529)
* Adding link to a ligthGBM article

* Adding link to Neptune + LightGBM integration

* text formatting

* Update README.md

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

* fixing link in external repos

* adding text

* remove link to neptune repo

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2021-08-21 17:20:55 -05:00
James Lamb a926d4fe93
consolidate duplicate conditions in TextReader (#4530) 2021-08-19 22:21:04 -05:00
Nikita Titov 981853b108
[ci] Add checks that OpenMP is used in R-package builds (#4538) 2021-08-19 19:22:12 -05:00
Nikita Titov a036c13024
[ci] Add checks that MM_PREFETCH and MM_MALLOC are used in CRAN builds (#4536) 2021-08-19 23:59:37 +03:00
James Lamb c65a2e3363
[python] add type hints to logging functions in basic.py (#4527)
* [python] add type hints to logging functions in basic.py

* add hints on wrapper
2021-08-18 23:38:35 -05:00
Nikita Titov 73f7d5d656
[docs] Update link to `daal4py` in README (#4532) 2021-08-18 22:51:56 -05:00
James Lamb 67f2cb3162
[python] add type hints in docs/conf.py (#4526)
* [python] add type hints in docs/conf.py

* more specific hint for sphinx app

* Apply suggestions from code review

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

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-18 20:31:59 -05:00
James Lamb dbccc1e73f
[R-package] fix OpenMP checking on macOS (fixes #4131) (#4507)
* [R-package] fix OpenMP checking on macOS

* adding clang flags back

* fix detection on Mac

* remove CC since it is now unused

* use flags specific to C++11

* regenerate configure
2021-08-18 20:30:14 -05:00
James Lamb a7ff117219
[R-package] remove unused '...' in Booster constructor (#4523)
Co-authored-by: Nikita Titov <nekit94-12@hotmail.com>
2021-08-17 19:55:36 -05:00
James Lamb 2edb818848
[R-package] pass R-configured compiler flags to checks in configure (#4506)
* [R-package] pass compiler flags to checks in configure

* leave OpenMP check alone

* prefer C++11 flags

* install Matrix in valgrind tests

* one less AC_LANG() call

Co-authored-by: Nikita Titov <nekit94-12@hotmail.com>
2021-08-18 03:02:41 +03:00
James Lamb 112db8ab82
[R-package] add deprecation warnings about some uses of '...' (#4522)
Co-authored-by: Nikita Titov <nekit94-12@hotmail.com>
2021-08-17 23:37:16 +03:00
Nikita Titov 521a5c47e3
[docs] Add notes in installation guide, including ones about OpenMP (#4520) 2021-08-17 21:16:27 +03:00
James Lamb fbbe3cc152
[ci] use flag '--allow-releaseinfo-change' in some 'apt-get update' calls (#4524)
* [ci] prefer 'apt update' to 'apt-get update' in some R builds

* use --allow-releaseinfo-change
2021-08-17 21:13:06 +03:00
James Lamb 86ead2050c
[R-package] use C++ compiler for pre-compile checks on Windows (#4504)
* [R-package] use C++ compiler for pre-compile checks on Windows

* install Matrix in valgrind test

* Add {Matrix} in more places in CI and docs

* use CXX11

* use flags specific to C++11

* missing backtick

Co-authored-by: Nikita Titov <nekit94-12@hotmail.com>
2021-08-14 14:04:12 -05:00
James Lamb 3c781ba08c
[docs] [R-package] use CRAN-style builds when building pkgdown site (#4513)
* [docs] [R-package] use CRAN-style builds when building pkgdown site

* install with --with-keep.source

* empty commit

* set new_proccess = FALSE to get a better traceback

* copy pkgdown config
2021-08-14 15:39:12 +03:00
James Lamb a2e5f496ed
[ci] replace uses of backticks in test.sh with `$()` (#4519) 2021-08-14 14:17:07 +03:00
James Lamb 926526c838
[ci] move Solaris and valgrind test steps into scripts (#4503)
* [ci] move Solaris and valgrind test steps into scripts

* Update .github/workflows/r_solaris.yml

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

* relatiev paths

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-10 15:18:37 +03:00
Nikita Titov 16aa010f08
[docs] Update link to mlr3-compliant interface in README (#4509) 2021-08-10 02:01:37 +03:00
José Morales cfe8eb17c9
[tests][dask] reduce number of collisions tests (#4501)
* reduce number of collisions tests

* measure tests execution time

* measure tests execution time in bdist task

* remove durations in bdist task
2021-08-09 20:04:01 +03:00
James Lamb 2f3764265c
[R-package] remove unused variable `R_SCRIPT` in configure.win (#4505) 2021-08-09 15:28:31 +03:00
José Morales 5fe27d5942
[dask] find all needed ports in each host at once (fixes #4458) (#4498)
* find all needed ports in each worker at once

* lint

* better naming

* use _HostWorkers in test
2021-08-03 17:24:10 -05:00
Chen Yufei 1dbf4382fd
Update c_api LGBM_SampleIndices() comment. (#4490)
* Update c_api LGBM_SampleIndices() comment.

rand.Sample() now returns exactly given number of samples, thus the
comment should be fixed.

* Update include/LightGBM/c_api.h

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

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-03 23:33:42 +03:00
James Lamb 75e486a6fa
[R-package] quote path variables in build-cran-package.sh (#4499) 2021-08-02 20:43:41 +03:00
Nikita Titov 661bde103a
[python][tests] refactor tests with Sequence input (#4495) 2021-07-31 22:38:31 +03:00
James Lamb 5d5f4909e5
[R-package] limit exported symbols in DLL (#4494) 2021-07-30 16:13:14 -05:00
Chen Yufei 1d21d1ad4c
[python] support Dataset.get_data for Sequence input. (#4472)
* [python] support Dataset.get_data for Sequence input.

* Tweaks according to review comments.

* Apply suggestions from code review

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

* Add test cases.

* fix import order in test_basic.py

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-07-30 23:49:13 +03:00
Nikita Titov 2370961ae0
[docs][ci] bump versions of R-package dependencies at RTD (#4488)
* remove R docs

* bump deps
2021-07-26 19:41:33 +03:00
James Lamb fdc582ea6b
[docs] document CLI behavior when label_column is omitted (#4485) 2021-07-24 23:05:48 -05:00
James Lamb 5d40dc4b68
remove examples/.gitignore (#4486) 2021-07-24 15:54:51 +03:00
Sagnik Roy 55c381578e
[python] Add type hints to helpers/parameter_generator.py (#4474)
* Update parameter_generator.py

* Update parameter_generator.py

* Update parameter_generator.py

* Update parameter_generator.py

* Update parameter_generator.py

* Update parameter_generator.py

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* Update helpers/parameter_generator.py

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

* additional hinting fixes

* Update parameter_generator.py

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2021-07-23 23:15:42 -05:00
Chen Yufei 3be611e75f
[refactor] Use `CreateSampleIndices()` in `c_api.cpp` (#4478)
This removes code duplication for creating sample indices.
2021-07-23 14:37:09 +03:00
Philip Hyunsu Cho 0012fc2878
Fix undefined behavior with NaN input in `CategoricalDecision()` (#4468)
* Fix undefined behavior with NaN input in CategoricalDecision()

* Always associate the right child with NaN inputs
2021-07-21 23:14:28 +03:00
Nikita Titov 5b7a6f3e71
[python] parallelize MinGW make similarly to Unix make command (#4462) 2021-07-12 14:05:49 +03:00
Nikita Titov ef76db45c7
[ci] remove preinstalled possibly conflicting software from PATH in CI jobs (#4463)
* remove preinstalled possibly conflicting software from PATH in CI jobs

* preserve pandoc
2021-07-11 17:40:46 -05:00
James Lamb 48257d45e5
[ci] Add CI job running rchk on the R package (fixes #4400) (#4449)
* [ci] add CI job running rchk

* try commenting out more stuff

* ignore R internal error

* pipes

* remove PROTECT()

* try removing testthat

* revert temporary testing changes
2021-07-10 16:36:29 +03:00
Nikita Titov 96583ab589
[python] migrate to pathlib in setup.py and use `absolute()` on paths first (#4444)
* use absolute() on paths first

* migrate to pathlib in setup.py
2021-07-10 16:18:50 +03:00
Nikita Titov f3f6545d4c
[ci] add support for 8.0 and 8.6 CUDA archs (#4454) 2021-07-10 15:54:50 +03:00
Nikita Titov d05f54701e
[tests][python] added tests for early stop in prediction in ranking task (#4457) 2021-07-09 23:07:36 -05:00
Nikita Titov 0d1d12fb46
[docs] clarify description of prediction early stopping (#4411) 2021-07-09 17:22:09 +03:00
Nikita Titov b61698f8fc
[ci] bump CUDA version from 11.2.2 to 11.4.0 at CI (#4453) 2021-07-09 14:49:12 +03:00
José Morales f836fe0c17
[dask] determine output shape of array in predict (fixes #4285) (#4351)
* call predict on one row of data to determine output shape

* make DaskLGBMRanker predict method equal to the others

* remove extra drop_axis
2021-07-08 09:59:38 -05:00
Nikita Titov 7f9959fe1c
[tests] clarify RuntimeError in distributed tests(#4452) 2021-07-07 08:29:53 -05:00
Nikita Titov 90342e929b
[python] allow to pass some params as pathlib.Path objects (#4440)
* allow to pass some params as pathlib.Path objects

* fix lint

* improve indentation
2021-07-07 14:31:06 +03:00
James Lamb b09da434f0
[dask] Make output of feature contribution predictions for sparse matrices match those from sklearn estimators (fixes #3881) (#4378)
* test_classifier working

* adding tests

* docs

* tests

* revert unnecessary changes in tests

* test output type

* linting

* linting

* use from_delayed() instead

* docstring pycodestyle is happy with

* isort

* put pytest skips back

* respect sparse return type

* fix doc

* remove unnecessary dask_array_concatenate()

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* update predict_proba() docstring

* remove unnecessary np.array()

* Update python-package/lightgbm/dask.py

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

* fix assertion

* fix test use of len()

* restore np.array() in tests

* use np.asarray() instead

* use toarray()

* remove empty functions in compat

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-07-07 14:27:06 +03:00
shiyu1994 a06899ab72
fix Reservoir Sampling in Sample of random.h (#4450) 2021-07-07 16:45:38 +08:00
James Lamb e36cc9c171
[python-package] use toarray() instead of todense() in tests and examples (#4446) 2021-07-07 01:12:47 +03:00