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

72 Коммитов

Автор SHA1 Сообщение Дата
Axel Durand 3d8013c83b
[python-package] [docs] Expand class docs for Dataset (#6558) 2024-07-24 14:45:59 -05:00
david-cortes 7435cd8d08
[R-package] Rename `slice()` to `lgb.slice.Dataset()` (#6293) 2024-02-03 01:14:30 -06:00
James Lamb 03ee995604
[R-package] [ci] switch vignettes from 'rmarkdown' to 'markdown' (#6258) 2024-01-08 21:26:33 -06:00
James Lamb 4aba4fc132
[R-package] change CRAN maintainer (#6224) 2023-12-06 12:56:27 -06:00
James Lamb 98c1db7794
[R-package] use C++17 in the CRAN package (#5690) 2023-03-06 21:57:18 -06:00
david-cortes c676a7ea19
[R-package] Accept factor labels and use their levels (#5341) 2023-02-13 22:12:20 -06:00
James Lamb f12d465101
[docs] [R-package] upgrade to roxygen2 7.2.1 (#5381) 2022-07-28 09:13:12 -05:00
James Lamb 1cc9f9dcee
[R-package] [docs] upgrade docs to roxygen2==7.2.0 (#5251)
[R-package] upgrade docs to roxygen2==7.2.0
2022-06-04 23:42:35 -05:00
James Lamb b0774151cb
remove support for Solaris (fixes #5216) (#5226) 2022-05-22 09:27:59 +08:00
Nikita Titov 924d337de3
[R-package] update roles in DESCRIPTION (#5192) 2022-05-03 22:45:31 -05:00
david-cortes 33eb03767d
[R-package] Promote number of threads to top-level argument in `lightgbm()` and change default to number of cores (#4972) 2022-03-31 19:58:19 -05:00
James Lamb fe535a0e9d
[R-package] [docs] add Michael Mayer to DESCRIPTION (#4867) 2021-12-07 11:50:55 -06:00
david-cortes 65ee8ab272
[R-package] Move R6 to Imports (#4812)
* update dependencies

* Update DESCRIPTION
2021-11-18 17:41:47 -06:00
James Lamb 5fa887bb79
[R-package] [docs] add intro vignette (#3946) (#4775)
* [R-package] [docs] add intro vignette (#3946)

* add 10 test vignettes

* Revert "add 10 test vignettes"

This reverts commit 40fb2e2f19.

* Apply suggestions from code review

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

Co-authored-by: Michael Mayer <mayermichael79@gmail.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-11-17 22:15:32 -06:00
James Lamb fa4ecf4c4d
v3.3.0 release (fixes #4310) (#4633)
* v3.3.0 release

* Auto-update configure

* Update R-package/DESCRIPTION

Co-authored-by: GitHub Actions Bot <githubactionsbot@users.noreply.github.com>
Co-authored-by: Nikita Titov <nekit94-12@hotmail.com>
2021-10-08 20:06:38 -05:00
James Lamb d46297277f
[R-package] introduce Dataset methods set_field() and get_field() (#4571)
* [R-package] introduce Dataset set_field() and get_field()

* fix incorrect fields

* update pkgdown

* fix example

* fix another example

* Apply suggestions from code review

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

* update docs

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-09-26 00:28:00 +08:00
Nikita Titov 0ca2c49424
[docs][R-package] add authors in R-package description (#4395)
* add authors in R-package description

* Update R-package/DESCRIPTION

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2021-06-21 20:09:14 -05:00
Alberto Ferreira 792c930305
Fix model locale issue and improve model R/W performance. (#3405)
* Fix LightGBM models locale sensitivity and improve R/W performance.

When Java is used, the default C++ locale is broken. This is true for
Java providers that use the C API or even Python models that require JEP.

This patch solves that issue making the model reads/writes insensitive
to such settings.
To achieve it, within the model read/write codebase:
 - C++ streams are imbued with the classic locale
 - Calls to functions that are dependent on the locale are replaced
 - The default locale is not changed!

This approach means:
 - The user's locale is never tampered with, avoiding issues such as
    https://github.com/microsoft/LightGBM/issues/2979 with the previous
    approach https://github.com/microsoft/LightGBM/pull/2891
 - Datasets can still be read according the user's locale
 - The model file has a single format independent of locale

Changes:
 - Add CommonC namespace which provides faster locale-independent versions of Common's methods
 - Model code makes conversions through CommonC
 - Cleanup unused Common methods
 - Performance improvements. Use fast libraries for locale-agnostic conversion:
   - value->string: https://github.com/fmtlib/fmt
   - string->double: https://github.com/lemire/fast_double_parser (10x
      faster double parsing according to their benchmark)

Bugfixes:
 - https://github.com/microsoft/LightGBM/issues/2500
 - https://github.com/microsoft/LightGBM/issues/2890
 - https://github.com/ninia/jep/issues/205 (as it is related to LGBM as well)

* Align CommonC namespace

* Add new external_libs/ to python setup

* Try fast_double_parser fix #1

Testing commit e09e5aad828bcb16bea7ed0ed8322e019112fdbe

If it works it should fix more LGBM builds

* CMake: Attempt to link fmt without explicit PUBLIC tag

* Exclude external_libs from linting

* Add exernal_libs to MANIFEST.in

* Set dynamic linking option for fmt.

* linting issues

* Try to fix lint includes

* Try to pass fPIC with static fmt lib

* Try CMake P_I_C option with fmt library

* [R-package] Add CMake support for R and CRAN

* Cleanup CMakeLists

* Try fmt hack to remove stdout

* Switch to header-only mode

* Add PRIVATE argument to target_link_libraries

* use fmt in header-only mode

* Remove CMakeLists comment

* Change OpenMP to PUBLIC linking in Mac

* Update fmt submodule to 7.1.2

* Use fmt in header-only-mode

* Remove fmt from CMakeLists.txt

* Upgrade fast_double_parser to v0.2.0

* Revert "Add PRIVATE argument to target_link_libraries"

This reverts commit 3dd45dde7b92531b2530ab54522bb843c56227a7.

* Address James Lamb's comments

* Update R-package/.Rbuildignore

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

* Upgrade to fast_double_parser v0.3.0 - Solaris support

* Use legacy code only in Solaris

* Fix lint issues

* Fix comment

* Address StrikerRUS's comments (solaris ifdef).

* Change header guards

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2020-12-08 21:36:24 +08:00
James Lamb 186711deae
[R-package] miscellaneous changes to comply with CRAN requirements (#3338)
* [R-package] update DESCRIPTION per CRAN comments

* newlines

* Apply suggestions from code review

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

* more fixes

* update Rbuildignore

* more changes

* more changes per CRAN response

* add email

* run examples in CI

* add newest CRAN response

* add Solaris patch

* update patch

* another attempt at ifaddrs patch

* fix unnecessary comment

* update configure

* comments

* bump version

* tabs

* fix address alignment, required by cran (#3415)

* fix dataset binary file alignment

* many fixes

* fix warnings

* fix bug

* Update file_io.cpp

* Update file_io.cpp

* simplify code

* Apply suggestions from code review

* general

* remove unneeded alignment

* Update file_io.h

* int32 to byte8 alignment

* Apply suggestions from code review

* Apply suggestions from code review

* [R-package] add new copyright holder in DESCRIPTION (#3409)

* [R-package] add new copyright holder in DESCRIPTION

* fix role

* fixing conflicts

* [R-package] add new copyright holder in DESCRIPTION (#3409)

* [R-package] add new copyright holder in DESCRIPTION

* fix role

* trying to fix conflicts

* more fixes

* this will work

* update cran-comments

* simplify solaris, add more testing docs

* stuff

* remove rchck docs

* Apply suggestions from code review

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

* remove extra use of cat()

* change solaris check

* update docs

* remove testing code

* fix warning about cleanup not having execute permissions

* fix cmake builds

* remove blank line

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
Co-authored-by: Guolin Ke <guolin.ke@outlook.com>
2020-10-07 21:51:21 -05:00
James Lamb e6048b647a
[R-package] add new copyright holder in DESCRIPTION (#3409)
* [R-package] add new copyright holder in DESCRIPTION

* fix role
2020-09-26 21:12:15 +03:00
James Lamb 5538eb8d81
[R-package] [ci] Reduce manual effort for version updates (#3335)
* [R-package] [ci] Reduce manual effort for version updates

* fix configure

* remove useless comment

* Update build_r.R

Co-authored-by: Guolin Ke <guolin.ke@outlook.com>

* fix recreate-configure check in CI

Co-authored-by: Guolin Ke <guolin.ke@outlook.com>
2020-08-25 14:36:37 -05:00
James Lamb 8ab35255a5
[R-package] update roles in DESCRIPTION (#3333) 2020-08-23 17:05:40 +08:00
James Lamb 1804fd12ea
[R-package] DESCRIPTION changes to address CRAN feedback (#3298)
* [R-package] DESCRIPTION changes to address CRAN feedback

* CRAN likes single quotes

* the regex rules for Rbuildignore are weird

* ugh Rbuildignore

* how does this wooork

* just remove cran-comments.md in script

* adding Biarch back

* Update R-package/cran-comments.md

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

* add submission 3 notes

* Update R-package/cran-comments.md

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-08-12 20:17:38 -05:00
Guolin Ke 63c8287928
v3.0.0rc1 (#3071)
* Update VERSION.txt

* Update VERSION.txt

* Update setup.py

* Update VERSION.txt

* Update setup.py

* Update VERSION.txt

* Update .appveyor.yml

* Update DESCRIPTION

* Apply suggestions from code review

* Apply suggestions from code review

* Update DESCRIPTION

* Apply suggestions from code review

* Create VERSION.txt

* Apply suggestions from code review

* Update .gitignore

* Update recreate-configure.sh

* Update test_r_package.sh

* Update build-cran-package.sh

* Delete VERSION.txt

* Create VERSION.txt

* Update main.yml

* Update test_r_package_windows.ps1

* Update configure

* Update test_r_package_windows.ps1

* Update test_r_package.sh

* Delete VERSION.txt

* Apply suggestions from code review

* update configure.ac

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2020-08-07 08:11:12 +08:00
James Lamb 952e23a009
[R-package] Add tests on lgb.check.eval, lgb.unloader, and lgb.encode.char (#3235)
* [R-package] Add tests on lgb.check.eval, lgb.unloader, and lgb.encode.char

* remove accidental test file

* regenerated docs
2020-07-21 21:41:01 -05:00
James Lamb 9f52282d0b
[R-package] factor out {ggplot2} (#3224)
* more changes

* factor out ggplot2

* update CI

* remove library()

* linting

* reduce NOTEs on Windows
2020-07-20 20:31:20 +08:00
James Lamb 2792923d35
[R-package] Add version floor of R 3.5 (fixes #3212) (#3216) 2020-07-11 22:37:31 -05:00
James Lamb 7b935430d8
[R-package] remove unused Suggests dependencies (#3217) 2020-07-10 08:41:55 -05:00
James Lamb 3caf359a79
[R-package] speed up installation with Visual Studio (#2965)
* fix conflicts

* Update R-package/src/install.libs.R

* empty commit
2020-05-14 19:31:13 +03:00
James Lamb 9478e52f9f
[R-package] fix R examples and lgb.plot.interpretation() (#3002)
* [R-package] fix R examples and lgb.plot.interpretation

* remove space in gitignore

* try data.table from conda-forge

* update FAQ

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-04-21 13:47:23 -05:00
James Lamb 7d5bfdaf2b
[R-package] Updated package metadata in DESCRIPTION (#2993) 2020-04-14 22:39:27 -05:00
James Lamb f2afb2cd35 [R-package][docs] made roxygen2 tags explicit and cleaned up documentation (#2688)
* [R-package] made roxygen2 tags explicit and cleaned up documentation

* 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 R-package/man/lightgbm.Rd

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* [R-package] moved @name to the top of roxygen blocks and removed some inaccurate information in documentation on parameters

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-01-20 22:35:49 +03:00
James Lamb 86ca484508
[R-package][ci] added CI stage for R package (fixes #2335, fixes #2569) (#2530) 2019-12-15 12:01:01 -06:00
Nikita Titov 483a9bbad2
bump version for development (#2599) 2019-11-29 03:40:04 +03:00
Nikita Titov 8364fc3e9a
Release 2.3.1 (#2596) 2019-11-28 16:20:18 +03:00
James Lamb a94275120f [R-package] removed unnecessary Suggests dependencies (#2543) 2019-11-11 17:33:34 +03:00
Guolin Ke 3d407b67e5
new version number after release (#2469)
* new version number after release

* Update .appveyor.yml

* Update DESCRIPTION
2019-09-29 17:53:40 +08:00
James Lamb 42204c43da
[R-package] factored dependency 'magrittr' out of R package (#2334) 2019-09-28 23:05:12 -05:00
Guolin Ke b3c126629e
v2.3.0 realese (#2138)
* Update DESCRIPTION

* bump minor version
2019-09-29 11:56:42 +08:00
Nikita Titov faba6cafb7
[docs][R] added R-package docs generation routines (#2176)
* added R-package docs generation routines

* change theme to be more consistent with sphinx_rtd_theme on main site in terms of color scheme

* placed man folder with old Rd files back

* specify full path to conda and make script more readable by one line - one pkg

* removed commented lines from build_r_site script

* made one line - one argument in build_reference() call

* pin R package versions

* fixed conflict
2019-09-01 19:47:04 +03:00
James Lamb b0b45911c0 updated R-package authors (#2321) 2019-08-13 15:09:57 +03:00
Guolin Ke 8e286b38a3
update version number at master branch (#1996)
* Update VERSION.txt

* Update .appveyor.yml

* Update DESCRIPTION
2019-02-05 19:27:24 +08:00
Guolin Ke 0d0e793ab6
2.2.3 release (#1987)
* Update DESCRIPTION

* Update DESCRIPTION
2019-02-05 08:31:12 +08:00
Guolin Ke ca4b6664c4
new version for master branch (#1824)
* Update VERSION.txt

* Update .appveyor.yml

* Update DESCRIPTION
2018-11-07 11:15:48 +08:00
Guolin Ke 6d331d9697
new release (v2.2.2) (#1801)
* Update DESCRIPTION

* Update DESCRIPTION

* Update DESCRIPTION
2018-11-06 11:29:27 +08:00
Guolin Ke 93ba3686d9 update version for master branch 2018-10-04 01:22:47 +08:00
Guolin Ke 8f6d02aade
update R's version (#1727) 2018-10-04 00:34:20 +08:00
Guolin Ke 425503d7e2 using a different version in master branch, compared with release (#1676)
* using different version for master branch with release

* Update .travis.yml

* Update .travis.yml
2018-09-20 14:05:02 +09:00
Guolin Ke 7158a63203
new release (#1649)
* Update VERSION.txt

* Update DESCRIPTION

* Update .appveyor.yml

* Update .appveyor.yml

* Update DESCRIPTION

* Update VERSION.txt

* Update .appveyor.yml

* Update DESCRIPTION

* Update VERSION.txt

* Update DESCRIPTION
2018-09-18 10:12:02 +08:00
James Lamb eded794efb [R-package] CRAN fixes (#1499)
* Fixed typos in docs

* Fixed inconsistencies in documentation

* Updated strategy for registering routines

* Fixed issues caused by smashing multiple functions into one Rd

* Fixed issues with documentation

* Removed VignetteBuilder and updated Rbuildignore

* Added R build artefacts to gitignore

* Added namespacing on data.table set function. Updated handling of CMakeLists file to get around CRAN check.

* Updated build instructions

* Added R build script

* Removed build_r.sh script and updated R-package install instructions
2018-08-29 13:31:42 +09:00