- 08 Dec, 2020 1 commit
-
-
Alberto Ferreira authored
* 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>
-
- 07 Dec, 2020 1 commit
-
-
James Lamb authored
* [ci] [R-package] fix issue with partial argument name matches * fix partial name matches * simpler NOTE check * change conditions * simplify
-
- 29 Nov, 2020 1 commit
-
-
James Lamb authored
* [R-package] Use command-line args to customize CMake builds (fixes #2441) * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 27 Nov, 2020 1 commit
-
-
Nikita Titov authored
-
- 26 Nov, 2020 1 commit
-
-
Martynov Maxim authored
Co-authored-by:Мартынов Максим Сергеевич <msmarty5@mts.ru>
-
- 23 Nov, 2020 1 commit
-
-
James Lamb authored
* [ci] test 32-bit R in CI * add R 3.6 Windows CRAN job * add tests
-
- 17 Nov, 2020 1 commit
-
-
James Lamb authored
* [ci] always use latest conda version on GitHub Actions * try new use-conda version * just remove conda * skip conda even more
-
- 13 Nov, 2020 1 commit
-
-
James Lamb authored
* [ci] Use different PATH based on Rtools version * better paths * comment out CIs * empty commit * empty commit * empty commit * empty commit * empty commit * empty commit * uncomment CIs * reorganize PATH components
-
- 08 Nov, 2020 1 commit
-
-
James Lamb authored
* [ci] simplify R CI scripts * update GitHub Actions workflow
-
- 07 Nov, 2020 1 commit
-
-
James Lamb authored
-
- 06 Nov, 2020 1 commit
-
-
James Lamb authored
-
- 26 Oct, 2020 1 commit
-
-
Nikita Titov authored
* setup CUDA CI job * minor updates
-
- 22 Oct, 2020 1 commit
-
-
Nikita Titov authored
* Update .vsts-ci.yml * Update setup.sh * Update .vsts-ci.yml * Update .vsts-ci.yml * try not to hardcode path
-
- 20 Oct, 2020 1 commit
-
-
Ashish Sinha authored
* Update lint_r_code.R * improves logging in lint_r_code * Update .ci/lint_r_code.R Co-authored-by:
James Lamb <jaylamb20@gmail.com> Co-authored-by:
James Lamb <jaylamb20@gmail.com>
-
- 18 Oct, 2020 2 commits
-
-
James Lamb authored
* fix int64 write error * attempt * [WIP] [ci] [R-package] Add CI job that runs valgrind tests * update all-successful * install * executable * fix redirect stuff * Apply suggestions from code review Co-authored-by:
Guolin Ke <guolin.ke@outlook.com> * more flags * add mc to msvc proj * fix memory leak in mc * Update monotone_constraints.hpp * Update r_package.yml * remove R_INT64_PTR * disable openmp * Update gbdt_model_text.cpp * Update gbdt_model_text.cpp * Apply suggestions from code review * try to free vector * free more memories. * Update src/boosting/gbdt_model_text.cpp * fix using * try the UNPROTECT(1); * fix a const pointer * fix Common * reduce UNPROTECT * remove UNPROTECT(1); * fix null handle * fix predictor * use NULL after free * fix a leaking in test * try more fixes * test the effect of tests * throw exception in Fatal * add test back * Apply suggestions from code review * commet some tests * Apply suggestions from code review * Apply suggestions from code review * trying to comment out tests * Update openmp_wrapper.h * Apply suggestions from code review * Update configure * Update configure.ac * trying to uncomment * more comments * more uncommenting * more uncommenting * fix comment * more uncommenting * uncomment fully-commented out stuff * try uncommenting more dataset tests * uncommenting more tests * ok getting closer * more uncommenting * free dataset * skipping a test, more uncommenting * more skipping * re-enable OpenMP * allow on OpenMP thing * move valgrind to comment-only job * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * changes from code review * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * linting * issue comments too * remove issue_comment Co-authored-by:
Guolin Ke <guolin.ke@outlook.com> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
James Lamb authored
* [ci] ignore R CMD CHECK warnings on new R version * just update version
-
- 16 Oct, 2020 1 commit
-
-
Josh Maxwell authored
* Modified script to also remove pragma warnings. This also includes modifying the scope of the pragma removal. Previously this script only searched inside the ./src/include/LightGMB directory. This was not inclusive enough to remove the warnings in files shown in the ticket. * Adds CI test that exits if unknown pragma warnings are present. * Expanding pragma removal to cpp and hpp files. * Update .ci/test_r_package.sh Removing unneeded conditions since this script will only run on Linux and Mac builds anyway. Co-authored-by:
James Lamb <jaylamb20@gmail.com> * Update .ci/test_r_package.sh Fixes typo Co-authored-by:
James Lamb <jaylamb20@gmail.com> * replacing double quotes with single quotes * Using a more portable find syntax so it works on macOS and Linux Co-authored-by:
James Lamb <jaylamb20@gmail.com>
-
- 08 Oct, 2020 1 commit
-
-
James Lamb authored
* [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>
-
- 06 Oct, 2020 1 commit
-
-
James Lamb authored
* [R-package] [ci] Make Windows CI fail if R CMD check fails * restore fix * catch more errors * remove testing * fix processx calls * try to get status code * more logs * trying something * stuff * previous changes * uncomment
-
- 04 Oct, 2020 1 commit
-
-
James Lamb authored
* [R-package] add 'cleanup' script to handle left-behind Makevars * always install library for checkbashisms
-
- 20 Sep, 2020 1 commit
-
-
Chip Kerchner authored
* Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * Initial CUDA work * redirect log to python console (#3090) * redir log to python console * fix pylint * Apply suggestions from code review * Update basic.py * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * Update c_api.h * Apply suggestions from code review * Apply suggestions from code review * super-minor: better wording Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
StrikerRUS <nekit94-12@hotmail.com> * re-order includes (fixes #3132) (#3133) * Revert "re-order includes (fixes #3132) (#3133)" (#3153) This reverts commit 656d2676 . * Missing change from previous rebase * Minor cleanup and removal of development scripts. * Only set gpu_use_dp on by default for CUDA. Other minor change. * Fix python lint indentation problem. * More python lint issues. * Big lint cleanup - more to come. * Another large lint cleanup - more to come. * Even more lint cleanup. * Minor cleanup so less differences in code. * Revert is_use_subset changes * Another rebase from master to fix recent conflicts. * More lint. * Simple code cleanup - add & remove blank lines, revert unneccessary format changes, remove added dead code. * Removed parameters added for CUDA and various bug fix. * Yet more lint and unneccessary changes. * Revert another change. * Removal of unneccessary code. * temporary appveyor.yml for building and testing * Remove return value in ReSize * Removal of unused variables. * Code cleanup from reviewers suggestions. * Removal of FIXME comments and unused defines. * More reviewers comments cleanup. * More reviewers comments cleanup. * More reviewers comments cleanup. * Fix config variables. * Attempt to fix check-docs failure * Update Paramster.rst for num_gpu * Removing test appveyor.yml * Add CUDA_RESOLVE_DEVICE_SYMBOLS to libraries to fix linking issue. * Fixed handling of data elements less than 2K. * More reviewers comments cleanup. * Removal of TODO and fix printing of int64_t * Add cuda change for CI testing and remove cuda from device_type in python. * Missed one change form previous check-in * Removal AdditionConfig and fix settings. * Limit number of GPUs to one for now in CUDA. * Update Parameters.rst for previous check-in * Whitespace removal. * Cleanup unused code. * Changed uint/ushort/ulong to unsigned int/short/long to help Windows based CUDA compiler work. * Lint change from previous check-in. * Changes based on reviewers comments. * More reviewer comment changes. * Adding warning for is_sparse. Revert tmp_subset code. Only return FeatureGroupData if not is_multi_val_ * Fix so that CUDA code will compile even if you enable the SCORE_T_USE_DOUBLE define. * Reviewer comment cleanup. * Replace warning with Log message. Removal of some of the USE_CUDA. Fix typo and removal of pragma once. * Remove PRINT debug for CUDA code. * Allow to use of multiple GPUs for CUDA. * More multi-GPUs enablement for CUDA. * More code cleanup based on reviews comments. * Update docs with latest config changes. Co-authored-by:
Gordon Fossum <fossum@us.ibm.com> Co-authored-by:
ChipKerchner <ckerchne@linux.vnet.ibm.com> Co-authored-by:
Guolin Ke <guolin.ke@outlook.com> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
StrikerRUS <nekit94-12@hotmail.com> Co-authored-by:
James Lamb <jaylamb20@gmail.com>
-
- 14 Sep, 2020 1 commit
-
-
Nikita Titov authored
* Use Ubuntu Focal image at Travis * test gcc * test Bionic and gcc * test Focal with another Python version for GPU test * revert testing changes * install linkchecker via pip * simplify linkchecker config
-
- 13 Sep, 2020 1 commit
-
-
Nikita Titov authored
-
- 09 Sep, 2020 1 commit
-
-
James Lamb authored
* [ci] host some artifacts needed by R Windows CI jobs * remove link * host SWIG Co-authored-by:Guolin Ke <guolin.ke@outlook.com>
-
- 06 Sep, 2020 1 commit
-
-
James Lamb authored
* [ci] remove texlive-fonts-extra and Azure checks R from CI * put texlive-fonts-extra back
-
- 29 Aug, 2020 1 commit
-
-
James Lamb authored
-
- 25 Aug, 2020 1 commit
-
-
James Lamb authored
* [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>
-
- 19 Aug, 2020 1 commit
-
-
Nikita Titov authored
* bump Xcode version at Travis * remove temp fix for gcc at Travis
-
- 18 Aug, 2020 1 commit
-
-
James Lamb authored
* [ci] Test 32-bit builds for R package * update README * empty commit
-
- 15 Aug, 2020 1 commit
-
-
James Lamb authored
-
- 09 Aug, 2020 1 commit
-
-
James Lamb authored
[ci][R-package][python] suppress warning about empty 'compute' director, fix Rtools installation and temporary pin Sphinx version (#3277) * [R-package] suppress warning about empty 'compute' directory * get more logs from Rtools install * empty commit * add a timeout * trying Invoke-WebRequest instead * switch to CRAN link * do not use Start-Process * relative paths * trying suppressmessageboxes * switch strategy for running Rtools * Update requirements_rtd.txt * Update requirements_base.txt Co-authored-by:Nikita Titov <nekit94-08@mail.ru>
-
- 07 Aug, 2020 1 commit
-
-
Guolin Ke authored
* 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>
-
- 06 Aug, 2020 2 commits
-
-
Guolin Ke authored
-
James Lamb authored
* Move all examples to dontrun * update docs * fix nested dontrun * remove :: in examples * run_dontrun in pkgdown Co-authored-by:Nikita Titov <nekit94-08@mail.ru>
-
- 29 Jul, 2020 1 commit
-
-
James Lamb authored
* [R-package] make package installable with CRAN toolchain (fixes #2960) * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * remove GPU stuff * use wildcard to find objects to build * use -lomp * build configure before moving files * using wildcard for objects * Update .github/workflows/main.yml Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * add explicit objects back * reduce allowed R CMD check NOTEs and catch stderr from build-cran-package on Windows * fixing things * pin autoconf version * show diff * add automake back * run less checks * command was in the wrong place * fix autoconf version * change strategy for handling configure * fix Rbuildignore * fix NOTEs * fix notes about unrecognized files * fixing extra files * remove USE_R35 * add OpenMP check for Mac CRAN build * run all checks * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * suggestions from code review * undo indenting * remove 03 from Makevars.win.in * update language about OpenMP in configure script * checking if configure.ac check works * add autoconf back * remove testing code in configure.ac * more fixes for CI on configure script * print git diff * add VERSION.txt when checking configure * fix relative paths * remove git diff Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 24 Jul, 2020 1 commit
-
-
Nikita Titov authored
-
- 20 Jul, 2020 2 commits
-
-
James Lamb authored
* [ci] remove unnecessary R_CHECK_FORCE_SUGGESTS in CI scripts * remove unused test data
-
James Lamb authored
* more changes * factor out ggplot2 * update CI * remove library() * linting * reduce NOTEs on Windows
-
- 13 Jul, 2020 1 commit
-
-
Nikita Titov authored
-
- 05 Jul, 2020 1 commit
-
-
James Lamb authored
* [ci] [R-package] catch builds that have not updated docs * drop reliance on .Renviron * remove docs changes * Update .ci/test_r_package.sh Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * make all R tasks start with r-package Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-