- 17 Sep, 2021 1 commit
-
-
david-cortes authored
* fix R memory leaks * attempt at solving linter complaints * fix compilation on windows * move R_API_BEGIN to correct place * make sure exception objects reach out of scope * better way to solve rchk complaints * remove goto statement
-
- 27 Jun, 2021 1 commit
-
-
Fabio Sigrist authored
* [R-package] fix protection stack imbalance and unprotected objects issues * [R-package] fix minor linting issues * [ci][R-package] change timeout-minutes in valgrind test * [R-package] remove extra space Co-authored-by:
James Lamb <jaylamb20@gmail.com> * [R-package] remove counter for number of protected objects * Update .github/workflows/r_valgrind.yml Co-authored-by:
James Lamb <jaylamb20@gmail.com>
-
- 13 Jun, 2021 1 commit
-
-
James Lamb authored
* [R-package] move more finalizer logic intoo C++ side * add C finalizers * use gc() * put skip() back * Update R-package/tests/testthat/test_lgb.Booster.R Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 05 Jun, 2021 1 commit
-
-
James Lamb authored
-
- 15 May, 2021 1 commit
-
-
Nikita Titov authored
* Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * Update lightgbm_R.cpp * fix typos
-
- 12 May, 2021 1 commit
-
-
James Lamb authored
* started converting handles * more changes * sort of working for Dataset * yay all the tests are passing for Dataset handle changes * working for other handle types * remove debugging logging * remove unnecessary spaces * fix null logic * more NULL * updates * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * consolidate steps Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 10 May, 2021 1 commit
-
-
James Lamb authored
-
- 09 May, 2021 1 commit
-
-
James Lamb authored
* [R-package] move creation of character vectors in some methods to C++ side * convert LGBM_BoosterGetEvalNames_R * convert LGBM_BoosterDumpModel_R and LGBM_BoosterSaveModelToString_R * remove debugging code * update docs * remove comment * add handling for larger model strings * handle large strings in feature and eval names * got long feature names working * more fixes * linting * resize * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> * stricter test Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 04 May, 2021 1 commit
-
-
James Lamb authored
* converted LGBM_BoosterSaveModel_R * switch all other non-params cases * handle params
-
- 03 May, 2021 2 commits
-
-
James Lamb authored
* real pointer for matrix * remove R_REAL_PTR * remove R_INT_PTR * add test
-
James Lamb authored
* [R-package] replace R_AS_INT with R built-in * update header * more changes * Apply suggestions from code review Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 02 May, 2021 1 commit
-
-
James Lamb authored
* [R-package] move some functions over to SEXP objects * clarify comment * remove paste0() * fix registration table * fix cmake builds
-
- 01 May, 2021 1 commit
-
-
James Lamb authored
-
- 30 Apr, 2021 1 commit
-
-
James Lamb authored
* [R-package] prevent symbol lookup conflicts * add unit tests * only run test on Windows * move to .Call() calls * fix references * testing registration for CMake builds * revert NAMESPACE changes * revert testing changes
-
- 22 Apr, 2021 1 commit
-
-
James Lamb authored
* [R-package] raise errors from C++ side * working but a lot of warnings * more changes * simplify * cleanup * linting * fix valgrind issues * revert unnecessary change
-
- 18 Oct, 2020 1 commit
-
-
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>
-
- 06 Aug, 2020 1 commit
-
-
shiyu1994 authored
* [python] add start_iteration to python predict interface (#3058) * Apply suggestions from code review * Update lightgbm_R.h * Apply suggestions from code review * Apply suggestions from code review * fix R interface * update R documentation Co-authored-by:Guolin Ke <guolin.ke@outlook.com>
-
- 15 Jul, 2020 1 commit
-
-
Guolin Ke authored
* feature importance type in saved model file * fix nullptr * fixed formatting * fix python/R * Update src/c_api.cpp * Apply suggestions from code review Co-authored-by:
James Lamb <jaylamb20@gmail.com> * fix c_api test * fix swig * minor docs improvements and added defines for importance types Co-authored-by:
StrikerRUS <nekit94-12@hotmail.com> Co-authored-by:
James Lamb <jaylamb20@gmail.com>
-
- 11 Jun, 2020 1 commit
-
-
Nikita Titov authored
-
- 05 Jun, 2020 1 commit
-
-
Nikita Titov authored
This reverts commit 656d2676.
-
- 01 Jun, 2020 1 commit
-
-
James Lamb authored
-
- 25 May, 2020 1 commit
-
-
James Lamb authored
* [R-package] move R source files into R-package * fix linting warning * stuff
-
- 04 Apr, 2020 1 commit
-
-
Nikita Titov authored
-
- 01 Apr, 2020 1 commit
-
-
James Lamb authored
-
- 21 Mar, 2020 1 commit
-
-
James Lamb authored
-
- 20 Mar, 2020 1 commit
-
-
Alberto Ferreira authored
* [swig] Fix SWIG methods that return char** with StringArray. + [new] Add StringArray class to manage and manipulate arrays of fixed-length strings: This class is now used to wrap any char** parameters, manage memory and manipulate the strings. Such class is defined at swig/StringArray.hpp and wrapped in StringArray.i. + [API+fix] Wrap LGBM_BoosterGetFeatureNames it resulted in segfault before: Added wrapper LGBM_BoosterGetFeatureNamesSWIG(BoosterHandle) that only receives the booster handle and figures how much memory to allocate for strings and returns a StringArray which can be easily converted to String[]. + [API+safety] For consistency, LGBM_BoosterGetEvalNamesSWIG was wrapped as well: * Refactor to detect any kind of errors and removed all the parameters besides the BoosterHandle (much simpler API to use in Java). * No assumptions are made about the required string space necessary (128 before). * The amount of required string memory is computed internally + [safety] No possibility of undefined behaviour The two methods wrapped above now compute the necessary string storage space prior to allocation, as the low-level C API calls would crash the process irreversibly if they write more memory than which is passed to them. * Changes to C API and wrappers support char** To support the latest SWIG changes that enable proper char** return support that is safe, the C API was changed. The respecive wrappers in R and Python were changed too. * Cleanup indentation in new lightgbm_R.cpp code * Adress review code-style comments. * Update swig/StringArray.hpp Co-Authored-By:Nikita Titov <nekit94-08@mail.ru> * Update python-package/lightgbm/basic.py Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> * Update src/lightgbm_R.cpp Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
alberto.ferreira <alberto.ferreira@feedzai.com> Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 10 Mar, 2020 1 commit
-
-
James Lamb authored
* [R-package] cleaned up formatting in R C/C++ files * reverted some indentation changes * fixed spacing for comments * lightgbm to LightGBM
-
- 04 Mar, 2020 1 commit
-
-
Nikita Titov authored
* fixed cpplint errors * fixed more cpplint errors
-
- 03 Mar, 2020 1 commit
-
-
James Lamb authored
-
- 22 Feb, 2020 1 commit
-
-
Guolin Ke authored
* some refines * more omp refactoring * format define * fix merge bug * some fixes * fix some warnings * Apply suggestions from code review * Apply suggestions from code review * remove dup codes
-
- 20 Feb, 2020 1 commit
-
-
Joan Fontanals authored
* Add capability to get possible max and min values for a model * Change implementation to have return value in tree.cpp, change naming to upper and lower bound, move implementation to gdbt.cpp * Update include/LightGBM/c_api.h Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> * Change iteration to avoid potential overflow, add bindings to R and Python and a basic test * Adjust test values * Consider const correctness and multithreading protection * Update test values * Update test values * Add test to check that model is exactly the same in all platforms * Try to parse the model to get the expected values * Try to parse the model to get the expected values * Fix implementation, num_leaves can be lower than the leaf_value_ size * Do not check for num_leaves to be smaller than actual size and get back to test with hardcoded value * Change test order * Add gpu_use_dp option in test * Remove helper test method * Update src/c_api.cpp Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> * Update src/io/tree.cpp Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> * Update src/io/tree.cpp Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> * Update tests/python_package_test/test_basic.py Co-Authored-By:
Nikita Titov <nekit94-08@mail.ru> * Remoove imports Co-authored-by:
Nikita Titov <nekit94-08@mail.ru>
-
- 19 Feb, 2020 1 commit
-
-
Guolin Ke authored
* reset * fix a bug * fix test * Update c_api.h * support to no filter features by min_data * add warning in reset config * refine warnings for override dataset's parameter * some cleans * clean code * clean code * refine C API function doxygen comments * refined new param description * refined doxygen comments for R API function * removed stuff related to int8 * break long line in warning message * removed tests which results cannot be validated anymore * added test for warnings about unchangeable params * write parameter from dataset to booster * consider free_raw_data. * fix params * fix bug * implementing R * fix typo * filter params in R * fix R * not min_data * refined tests * fixed linting * refine * pilint * add docstring * fix docstring * R lint * updated description for C API function * use param aliases in Python * fixed typo * fixed typo * added more params to test * removed debug print * fix dataset construct place * fix merge bug * Update feature_histogram.hpp * add is_sparse back * remove unused parameters * fix lint * add data random seed * update * [R-package] centrallized Dataset parameter aliases and added tests on Dataset parameter updating (#2767) Co-authored-by:
Nikita Titov <nekit94-08@mail.ru> Co-authored-by:
James Lamb <jaylamb20@gmail.com>
-
- 13 Apr, 2019 1 commit
-
-
Nikita Titov authored
-
- 11 Apr, 2019 1 commit
-
-
Nikita Titov authored
* added all necessary includes - fixed build/include_what_you_use error * fixed the order of includes (build/include_order)
-
- 02 Feb, 2019 1 commit
-
-
Nikita Titov authored
-
- 30 Jan, 2019 1 commit
-
-
Guolin Ke authored
-
- 23 Jan, 2019 1 commit
-
-
Guolin Ke authored
* add warnings for override parameters of Dataset * fix pep8 * add feature_penalty * refactor * add R's code * Update basic.py * Update basic.py * fix parameter bug * Update lgb.Dataset.R * fix a bug
-
- 22 Aug, 2018 1 commit
-
-
Guolin Ke authored
* add start_iteration in model saving * fix test * shuffle models ability * fix bug * update document * refine * Update engine.py * Update basic.py * fix comments * fix comment
-
- 16 Aug, 2018 1 commit
-
-
Guolin Ke authored
* fix include * reduce dependency on header file * fix build
-
- 11 May, 2018 1 commit
-
-
Nikita Titov authored
* decode error description * added break line char in log massages
-