1. 11 Oct, 2022 1 commit
  2. 23 Aug, 2022 1 commit
  3. 17 Jun, 2022 1 commit
    • david-cortes's avatar
      [R-package] Add sparse feature contribution predictions (#5108) · 6f92d47a
      david-cortes authored
      
      
      * add predcontrib for sparse inputs
      
      * register newly-added function
      
      * comments
      
      * correct wrong types in test
      
      * forcibly take transpose function from Matrix
      
      * keep row names, test comparison to dense inputs
      
      * workaround for passing test while PR for row names is not merged
      
      * Update R-package/R/lgb.Predictor.R
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      
      * Update R-package/R/lgb.Predictor.R
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      
      * Update R-package/R/lgb.Predictor.R
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      
      * proper handling of integer overflow
      
      * add test for CSR contrib row names
      
      * add more tests for predict(<sparse>, predcontrib=TRUE)
      
      * make linter happy
      
      * linter
      
      * linter
      
      * check error messages for bad input shapes
      
      * fix regex
      
      * hard-coded number of columns in regex for tests
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      6f92d47a
  4. 15 Mar, 2022 1 commit
  5. 04 Dec, 2021 1 commit
  6. 03 Dec, 2021 1 commit
  7. 13 Nov, 2021 1 commit
  8. 25 Sep, 2021 1 commit
  9. 22 Sep, 2021 1 commit
  10. 17 Sep, 2021 1 commit
  11. 27 Jun, 2021 1 commit
  12. 13 Jun, 2021 1 commit
  13. 05 Jun, 2021 1 commit
  14. 15 May, 2021 1 commit
    • Nikita Titov's avatar
      [R-package] Handle integer types more accurate in R-to-C interface (#4291) · 90677e43
      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
      90677e43
  15. 12 May, 2021 1 commit
  16. 10 May, 2021 1 commit
  17. 09 May, 2021 1 commit
  18. 04 May, 2021 1 commit
  19. 03 May, 2021 2 commits
  20. 02 May, 2021 1 commit
  21. 01 May, 2021 1 commit
  22. 30 Apr, 2021 1 commit
  23. 22 Apr, 2021 1 commit
  24. 18 Oct, 2020 1 commit
    • James Lamb's avatar
      [ci] [R-package] Fix memory leaks found by valgrind (#3443) · 81d76113
      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: default avatarGuolin 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: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * changes from code review
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * linting
      
      * issue comments too
      
      * remove issue_comment
      Co-authored-by: default avatarGuolin Ke <guolin.ke@outlook.com>
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      81d76113
  25. 06 Aug, 2020 1 commit
  26. 15 Jul, 2020 1 commit
  27. 11 Jun, 2020 1 commit
  28. 05 Jun, 2020 1 commit
  29. 01 Jun, 2020 1 commit
  30. 25 May, 2020 1 commit
  31. 04 Apr, 2020 1 commit
  32. 01 Apr, 2020 1 commit
  33. 21 Mar, 2020 1 commit
  34. 20 Mar, 2020 1 commit
    • Alberto Ferreira's avatar
      Fix SWIG methods that return char** (#2850) · 91185c3a
      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: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Update python-package/lightgbm/basic.py
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Update src/lightgbm_R.cpp
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      Co-authored-by: default avataralberto.ferreira <alberto.ferreira@feedzai.com>
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      91185c3a
  35. 10 Mar, 2020 1 commit
  36. 04 Mar, 2020 1 commit
  37. 03 Mar, 2020 1 commit
  38. 22 Feb, 2020 1 commit
    • Guolin Ke's avatar
      some code refactoring (#2769) · 3e80df7e
      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
      3e80df7e
  39. 20 Feb, 2020 1 commit
    • Joan Fontanals's avatar
      Add capability to get possible max and min values for a model (#2737) · 18e7de4f
      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: default avatarNikita 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: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Update src/io/tree.cpp
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Update src/io/tree.cpp
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Update tests/python_package_test/test_basic.py
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Remoove imports
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      18e7de4f