1. 23 May, 2024 1 commit
  2. 29 Apr, 2024 1 commit
  3. 23 Apr, 2024 1 commit
  4. 20 Mar, 2024 1 commit
  5. 10 Feb, 2024 1 commit
  6. 01 Nov, 2023 1 commit
  7. 20 Jul, 2023 1 commit
  8. 15 Jun, 2023 1 commit
  9. 10 Jun, 2023 1 commit
  10. 31 May, 2023 1 commit
  11. 10 May, 2023 1 commit
  12. 04 May, 2023 1 commit
  13. 14 Feb, 2023 1 commit
  14. 29 Dec, 2022 1 commit
  15. 07 Oct, 2022 1 commit
  16. 05 May, 2022 1 commit
  17. 04 May, 2022 1 commit
  18. 05 Apr, 2022 1 commit
  19. 17 Mar, 2022 1 commit
    • Antoni Baum's avatar
      [python] make `early_stopping` callback pickleable (#5012) · f77e0adf
      Antoni Baum authored
      * Turn `early_stopping` into a Callable class
      
      * Fix
      
      * Lint
      
      * Remove print
      
      * Fix order
      
      * Revert "Lint"
      
      This reverts commit 7ca8b557572446888cf793c0082d9a7efd1e29a7.
      
      * Apply suggestion from code review
      
      * Nit
      
      * Lint
      
      * Move callable class outside the func for pickling
      
      * Move _pickle and _unpickle to tests utils
      
      * Add early stopping callback picklability test
      
      * Nit
      
      * Fix
      
      * Lint
      
      * Improve type hint
      
      * Lint
      
      * Lint
      
      * Add cloudpickle to test_windows
      
      * Update tests/python_package_test/test_engine.py
      
      * Fix
      
      * Apply suggestions from code review
      f77e0adf
  20. 11 Mar, 2022 1 commit
  21. 12 Feb, 2022 1 commit
  22. 06 Nov, 2021 1 commit
  23. 29 Oct, 2021 1 commit
  24. 24 Oct, 2021 1 commit
  25. 23 Oct, 2021 1 commit
  26. 04 Jul, 2021 1 commit
  27. 02 Jul, 2021 1 commit
    • Chen Yufei's avatar
      [python-package] Create Dataset from multiple data files (#4089) · c359896e
      Chen Yufei authored
      * [python-package] create Dataset from sampled data.
      
      * [python-package] create Dataset from List[Sequence].
      
      1. Use random access for data sampling
      2. Support read data from multiple input files
      3. Read data in batch so no need to hold all data in memory
      
      * [python-package] example: create Dataset from multiple HDF5 file.
      
      * fix: revert is_class implementation for seq
      
      * fix: unwanted memory view reference for seq
      
      * fix: seq is_class accepts sklearn matrices
      
      * fix: requirements for example
      
      * fix: pycode
      
      * feat: print static code linting stage
      
      * fix: linting: avoid shell str regex conversion
      
      * code style: doc style
      
      * code style: isort
      
      * fix ci dependency: h5py on windows
      
      * [py] remove rm files in test seq
      https://github.com/microsoft/LightGBM/pull/4089#discussion_r612929623
      
      * docs(python): init_from_sample summary
      
      https://github.com/microsoft/LightGBM/pull/4089#discussion_r612903389
      
      
      
      * remove dataset dump sample data debugging code.
      
      * remove typo fix.
      
      Create separate PR for this.
      
      * fix typo in src/c_api.cpp
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      
      * style(linting): py3 type hint for seq
      
      * test(basic): os.path style path handling
      
      * Revert "feat: print static code linting stage"
      
      This reverts commit 10bd79f7f8258bea8e61c3abb8c9c7e4456a916d.
      
      * feat(python): sequence on validation set
      
      * minor(python): comment
      
      * minor(python): test option hint
      
      * style(python): fix code linting
      
      * style(python): add pydoc for ref_dataset
      
      * doc(python): sequence
      Co-authored-by: default avatarshiyu1994 <shiyu_k1994@qq.com>
      
      * revert(python): sequence class abc
      
      * chore(python): remove rm_files
      
      * Remove useless static_assert.
      
      * refactor: test_basic test for sequence.
      
      * fix lint complaint.
      
      * remove dataset._dump_text in sequence test.
      
      * Fix reverting typo fix.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      
      * Fix type hint, code and doc style.
      
      * fix failing test_basic.
      
      * Remove TODO about keep constant in sync with cpp.
      
      * Install h5py only when running python-examples.
      
      * Fix lint complaint.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      
      * Doc fixes, remove unused params_str in __init_from_seqs.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Remove unnecessary conda install in windows ci script.
      
      * Keep param as example in dataset_from_multi_hdf5.py
      
      * Add _get_sample_count function to remove code duplication.
      
      * Use batch_size parameter in generate_hdf.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Fix after applying suggestions.
      
      * Fix test, check idx is instance of numbers.Integral.
      
      * Update python-package/lightgbm/basic.py
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Expose Sequence class in Python-API doc.
      
      * Handle Sequence object not having batch_size.
      
      * Fix isort lint complaint.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Update docstring to mention Sequence as data input.
      
      * Remove get_one_line in test_basic.py
      
      * Make Sequence an abstract class.
      
      * Reduce number of tests for test_sequence.
      
      * Add c_api: LGBM_SampleCount, fix potential bug in LGBMSampleIndices.
      
      * empty commit to trigger ci
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Rename to LGBM_GetSampleCount, change LGBM_SampleIndices out_len to int32_t.
      
      Also rename total_nrow to num_total_row in c_api.h for consistency.
      
      * Doc about Sequence in docs/Python-Intro.rst.
      
      * Fix: basic.py change LGBM_SampleIndices out_len to int32.
      
      * Add create_valid test case with Dataset from Sequence.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * Apply suggestions from code review
      Co-authored-by: default avatarshiyu1994 <shiyu_k1994@qq.com>
      
      * Remove no longer used DEFAULT_BIN_CONSTRUCT_SAMPLE_CNT.
      
      * Update python-package/lightgbm/basic.py
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      Co-authored-by: default avatarWillian Zhang <willian@willian.email>
      Co-authored-by: default avatarWillian Z <Willian@Willian-Zhang.com>
      Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
      Co-authored-by: default avatarshiyu1994 <shiyu_k1994@qq.com>
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      c359896e
  28. 26 Jun, 2021 1 commit
  29. 04 May, 2021 1 commit
  30. 16 Apr, 2021 1 commit
  31. 19 Jan, 2021 1 commit
  32. 28 Dec, 2020 1 commit
  33. 22 Dec, 2020 1 commit
  34. 19 Dec, 2020 1 commit
    • Itamar Turner-Trauring's avatar
      [python] Windows wheels that support GPUs via OpenCL (#3403) · 222a7368
      Itamar Turner-Trauring authored
      
      
      * Add specialized OpenCL/Python package build path
      
      * Refer to upstream OpenCL repository
      
      * Reset build job count in setup.py
      
      * Run test for dual CPU/GPU code in CI
      
      * TEMPORARY: refer to OpenCL fork to ensure Linux CI builds succeed
      
      * Try switching to OpenCL 2.0
      
      * Add --opencl-python-pacakge option to wheel
      
      * Fix some typos.
      
      * Remove intermediate cmake target
      
      * Restrict OpenCL headers to documented API version
      
      * Refresh the environment after installation
      
      * Try testing with two processes
      
      * Use command line definition to activate integrated build
      
      * Try newer OpenCL runtime
      
      * If we hit OpenCL code path that's good enough
      
      * Make tests run correctly
      
      * Correct directory
      
      * Flag reference to unofficial repo with FIXME
      
      * TEMPORARY: update private repo tag for dependency
      
      * Further post-merge fixes.
      
      * Fix attribute name.
      
      * Reformat with black.
      
      * Rewrite config.h before library compilation for Windows wheel
      
      * Run dual cpu/gpu test once only for Windows bdist CI
      
      * Avoid C API tests when building gpu library for wheel
      
      * TEMPORARY -- add clinfo tool to vm for debugging
      
      * Increase compilation logging
      
      * Rename OpenCL registry parameter after driver installation
      
      * Install legacy OpenCL runtime
      
      * ...
      
      * Remove config.h change, clinfo installation, latest opencl runtime reference
      
      * Add explicit script exit
      
      * revert to 18.1 intel driver
      
      * Run test_dual.py in two different modes
      
      * Revert "Run test_dual.py in two different modes"
      
      This reverts commit cbfec02659816f0cb321e1184994a9c2f37d2a77.
      
      * Remove unused expected failure test
      
      * Install OpenCL in separate powershell script
      
      * fix setup.py imports
      
      * activate conda env after session update
      
      * separate update functions; exit opencl installation on error
      
      * nothing; start pipeline
      
      * download from original source
      
      * specify tls version for installer download
      
      * eliminate variable from command
      
      * download opencl installer in parts
      
      * remove duplicate setup.py command class entry
      
      * download smaller parts
      
      * remove redundant bdist wheel class
      
      * Import chocolatey modules and use RefreshEnv
      
      * insert pipeline cache for opencl installer
      
      * rerun to ensure pipeline cache hit
      
      * add comments, test another pipeline cache hit
      
      * remove cache task; download full installer file from new location
      
      * try another installer download timing
      
      * reinsert pipeline cache
      
      * retain cache task; download full file on cache miss
      
      * test cache hit again
      
      * remove todo
      Co-authored-by: default avatarTP Boudreau <tpboudreau@gmail.com>
      222a7368
  35. 09 Dec, 2020 1 commit
    • Nikita Titov's avatar
      [python] Drop Python 2 support (#3581) · 44a6fb7f
      Nikita Titov authored
      * Update setup.py
      
      * Update .appveyor.yml
      
      * Update .travis.yml
      
      * Update .vsts-ci.yml
      
      * Update __init__.py
      
      * Update test.sh
      
      * Update test_windows.ps1
      
      * Update advanced_example.py
      
      * Update requirements_base.txt
      
      * Update conf.py
      
      * Update conf.py
      
      * Update test_engine.py
      
      * Update utils.py
      
      * Update dockerfile-r
      
      * Update README.md
      
      * Update dockerfile.gpu
      
      * Update test_consistency.py
      
      * Update basic.py
      
      * Update compat.py
      
      * Update engine.py
      
      * Update sklearn.py
      
      * Update sklearn.py
      
      * Update callback.py
      
      * Update setup.py
      
      * Update __init__.py
      
      * Update plotting.py
      
      * Update sklearn.py
      
      * Update engine.py
      
      * Update compat.py
      
      * Update callback.py
      
      * Update basic.py
      
      * Update compat.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update compat.py
      
      * Update compat.py
      
      * Update plotting.py
      
      * Update engine.py
      
      * Update basic.py
      
      * Update sklearn.py
      
      * Update compat.py
      
      * Update engine.py
      
      * Update engine.py
      
      * Update callback.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update sklearn.py
      
      * Update sklearn.py
      
      * Update plotting.py
      
      * Update sklearn.py
      
      * Update compat.py
      
      * Update compat.py
      
      * Update engine.py
      
      * Update plotting.py
      
      * Update sklearn.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update compat.py
      
      * Update compat.py
      
      * Update compat.py
      
      * Update engine.py
      
      * Update basic.py
      
      * Update compat.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update compat.py
      
      * Update compat.py
      
      * Update basic.py
      
      * Update basic.py
      
      * Update .vsts-ci.yml
      
      * Update .vsts-ci.yml
      
      * Update conf.py
      
      * Revert "Update dockerfile-r"
      
      This reverts commit 4ff6ffc7e3eeda24cc6a59a3bb0c973f02d9d71c.
      44a6fb7f
  36. 09 Sep, 2020 1 commit
  37. 26 Apr, 2020 1 commit
    • James Lamb's avatar
      [R-package] [ci] Add Windows CI for R package (fixes #2335) (#2936) · 2c18a0f3
      James Lamb authored
      
      
      * first test of appveyor
      
      * strings are strings
      
      * lil bit of build script
      
      * fixing paths
      
      * removed unnecessary file
      
      * updated CRAN URL
      
      * added a lot more printing
      
      * fixing paths
      
      * more stuff
      
      * fixed paths
      
      * more stuff
      
      * more path guessing
      
      * even more paths
      
      * more stuff
      
      * moar logz
      
      * and now for something totally different
      
      * please work
      
      * ok could be a thing
      
      * changing directories
      
      * we might be in business
      
      * fixed install syntax
      
      * tryinv mingw
      
      * more mingw
      
      * ignore Suggests check
      
      * trying Azure DevOps
      
      * just run bare minimum for Azure DevOps
      
      * fixed  build dir thing
      
      * trying to set libPaths
      
      * more testing
      
      * trying R 3.6.3
      
      * R 3.6.3
      
      * this feels right
      
      * still messing around with libraries
      
      * more paths
      
      * removed duplication in Windows testing code
      
      * simpler
      
      * fixed conda stuff
      
      * more conda stuff
      
      * more fixes
      
      * fixed testing script
      
      * moved AppVeyor setup to the top
      
      * commenting
      
      * ch-ch-ch-ch-chaaaanges
      
      * paths
      
      * plz work
      
      * fixed conda stuff in Windows CI
      
      * uncommented stuff to test a full build
      
      * fixed quotes and removed some unnecessary stuff
      
      * added install.libs.R change
      
      * quotes are impoortant
      
      * added commented-out stuff back in
      
      * added Windows script, download retries, and MSVC linking
      
      * minor fixes
      
      * cleaned up debugging code in FindLibR
      
      * cleaned up debugging code and moved R first in CI
      
      * fixed vsts-ci indentation
      
      * cut documentation stuff out of MSVC build
      
      * fix R CMD check for Azure
      
      * misc whitespace changes
      
      * Added echoing of build logs from R CMD check
      
      * cut out more documentation tests
      
      * fixed NOTE about imports from Matrix
      
      * moved some changes out of this PR and into #2963
      
      * fixed whitespace stuff
      
      * added check on number of NOTES
      
      * adding better checks
      
      * fixing check on NOTEs
      
      * removing unnecessary variable
      
      * Update .ci/test_r_package_windows.ps1
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * some changes
      
      * fix quoting
      
      * trying MINGW on Azure DevOps
      
      * fixing paths
      
      * more paths
      
      * fixing paths
      
      * testing paths
      
      * fixing slashes
      
      * pinned CTAN mirror
      
      * get better logs
      
      * made sure Azure finds MinGW, fixed search for LIBR_CORE_LIBRARY, stopped building R docs on Azure
      
      * Apply suggestions from code review
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * added CXX, CC for Windows builds and changed back to building docs on all MINGW builds
      
      * stored LIBR_CORE_LIBRARY hints in one variable
      
      * Apply suggestions from code review
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      
      * changes from code review
      
      * increased parallel builds for Azure CI
      
      * Apply suggestions from code review
      Co-Authored-By: default avatarNikita Titov <nekit94-08@mail.ru>
      Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
      2c18a0f3
  38. 10 Apr, 2020 1 commit
    • Nikita Titov's avatar
      [python] Re-enable scikit-learn 0.22+ support (#2949) · c633c6c2
      Nikita Titov authored
      * Revert "specify the last supported version of scikit-learn (#2637)"
      
      This reverts commit d1002776.
      
      * ban scikit-learn 0.22.0 and skip broken test
      
      * fix updated test
      
      * fix lint test
      
      * Revert "fix lint test"
      
      This reverts commit 8b4db0805fe7a9e7f7eb0be3eac231f85026d196.
      c633c6c2
  39. 01 Apr, 2020 1 commit
  40. 08 Nov, 2019 1 commit