1. 05 Jun, 2020 1 commit
  2. 01 Jun, 2020 1 commit
  3. 25 May, 2020 1 commit
  4. 04 Apr, 2020 1 commit
  5. 01 Apr, 2020 1 commit
  6. 21 Mar, 2020 1 commit
  7. 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
  8. 10 Mar, 2020 1 commit
  9. 04 Mar, 2020 1 commit
  10. 03 Mar, 2020 1 commit
  11. 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
  12. 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
  13. 19 Feb, 2020 1 commit
    • Guolin Ke's avatar
      [python] [R-package] refine the parameters for Dataset (#2594) · 9f79e840
      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: default avatarNikita Titov <nekit94-08@mail.ru>
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      9f79e840
  14. 13 Apr, 2019 1 commit
  15. 11 Apr, 2019 1 commit
  16. 02 Feb, 2019 1 commit
  17. 30 Jan, 2019 1 commit
  18. 23 Jan, 2019 1 commit
  19. 22 Aug, 2018 1 commit
    • Guolin Ke's avatar
      add start_iteration in model saving (#1565) · 941068ee
      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
      941068ee
  20. 16 Aug, 2018 1 commit
  21. 11 May, 2018 1 commit
  22. 11 Mar, 2018 1 commit
  23. 04 Dec, 2017 1 commit
  24. 30 Nov, 2017 1 commit
  25. 29 Nov, 2017 1 commit
  26. 27 Nov, 2017 1 commit
  27. 24 Nov, 2017 1 commit
  28. 18 Aug, 2017 1 commit
  29. 06 Jun, 2017 1 commit
  30. 05 Jun, 2017 1 commit
    • Guolin Ke's avatar
      Compile R package by custom tool chain. (#584) · f98d75fc
      Guolin Ke authored
      * add R's library file to vs project and cmake.
      
      * support using dll built by vs.
      
      * better search for the library file.
      
      * remove mingw related doc .
      
      * update document.
      
      * Let R handle the library compile.
      
      * try fix build from github.
      
      * Update README.md
      
      * cleaner build.
      
      * fix the install problem in linux.
      
      * Update README.md
      f98d75fc
  31. 30 May, 2017 1 commit
    • Guolin Ke's avatar
      Support early stopping of prediction in CLI (#565) · 6d4c7b03
      Guolin Ke authored
      * fix multi-threading.
      
      * fix name style.
      
      * support in CLI version.
      
      * remove warnings.
      
      * Not default parameters.
      
      * fix if...else... .
      
      * fix bug.
      
      * fix warning.
      
      * refine c_api.
      
      * fix R-package.
      
      * fix R's warning.
      
      * fix tests.
      
      * fix pep8 .
      6d4c7b03
  32. 05 May, 2017 1 commit
    • JesseLimtiaco's avatar
      Adding ability to load model from string in R (#472) · beb5fc5e
      JesseLimtiaco authored
      * Update lgb.Booster.R
      
      Added method to call LGBM_BoosterLoadModelFromString_R if model_str is provided for initialization, added option to load from model_str in lgb.load
      
      * Update lightgbm_R.cpp
      
      Adding LGBM_BoosterLoadModelFromString_R
      
      * Update lightgbm_R.cpp
      
      Added LGBM_BoosterSaveModelToString_R
      
      * Update lightgbm_R.cpp
      
      * Update lgb.Booster.R
      
      Added save_model_to_string method
      
      * Update lgb.Booster.R
      
      Implemented @Laurae2 comments
      
      * Update lgb.Booster.R
      
      * Update lightgbm_R.h
      
      Added load and save model from/to string exports
      beb5fc5e
  33. 24 Apr, 2017 1 commit
  34. 12 Jan, 2017 1 commit
  35. 10 Jan, 2017 1 commit
  36. 08 Jan, 2017 1 commit
    • Guolin Ke's avatar
      R package (#168) · 551d59ca
      Guolin Ke authored
      * finish R's c_api
      
      * clean code
      
      * fix sizeof pointer in 32bit system.
      
      * add predictor class
      
      * add Dataset class
      
      * format code
      
      * add booster
      
      * add type check for expose function
      
      * add a simple callback
      
      * add all callbacks
      
      * finish the basic training logic
      
      * update docs
      
      * add an simple training interface
      
      * add basic test
      
      * adapt the changes in c_api
      
      * add test for Dataset
      
      * add test for custom obj/eval functions
      
      * fix python test
      
      * fix bug in metadata init
      
      * fix R CMD check
      551d59ca