Граф коммитов

46 Коммитов

Автор SHA1 Сообщение Дата
James Lamb e0cda880fc
[python-package] remove uses of deprecated NumPy random number generation APIs, require 'numpy>=1.17.0' (#6468) 2024-06-03 20:17:40 -05:00
James Lamb 72e8106d3b
allow new files in include/LightGBM (#6177) 2023-11-06 09:59:58 -06:00
Oliver Borchert 1d7ee63686
Remove superfluous todo from gitignore (#6081) 2023-09-06 13:00:18 -05:00
James Lamb a97c444b4c
[ci] [python-package] replace 'python setup.py' with a shell script (#5837) 2023-05-04 17:06:11 -05:00
James Lamb 2f27d4b226
[ci][docs] use miniforge for readthedocs builds (fixes #4954) (#4957)
* [ci] [docs] use mamba for readthedocs builds (fixes #4954)

* update docs

* simplify build script and add docs flag to gitignore

* exit with non-0 if build fails

* update CI job

* add doxygen

* remove outdated requirement_base.txt reference

* use conda create instead of conda env create

* fix conda create flags

* add nodefaults to env.yml

* Update docs/README.rst

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* try to fix check-docs CI job

* additional changes

* switch from mamba to miniforge

* simplify docker command and fix issues in local build script

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* update docs and conda

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2022-02-19 06:29:56 +03:00
James Lamb 846e8954ac
[R-package] fix warnings in demos (#4569)
* [R-package] fix warnings in demos

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* fix additional params issues in multiclass and categorical_feature examples

* Update R-package/demo/multiclass.R

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-08-28 20:01:02 -05:00
James Lamb 5d40dc4b68
remove examples/.gitignore (#4486) 2021-07-24 15:54:51 +03:00
jmoralez b699fa68cb
[tests][cli] distributed training (#4254)
* include distributed tests

* remove github action file

* try CI

* build shared library and fix linting error

* ignore files created for testing. add type hints and check with mypy. include docstrings

* lint

* use pre_partition and write separate model files. remove mypy

* update docs

* remove ci. lower rtol. pass num_machines in config

* write predict.conf in the predict method. more robust port setup. use subprocess.run and check returncode

* add paths to tests and binary. remove lgb dependency. update .igtignore.

* lint

* allow to pass executable dir as argument to pytest

* pass execfile to pytest instead of execdir

* add suggestions

* use os.path and add type hint to predict_config

* Update tests/distributed/_test_distributed.py

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2021-07-04 00:10:09 -05:00
Nikita Titov df0042e61c
[ci] add h5 files into `.gitignore` (#4429) 2021-07-03 03:42:22 +03:00
Philip Hyunsu Cho bcf443b568
Add CMake option to enable sanitizers and build gtest (#3555)
* Add CMake option to enable sanitizer

* Set up gtest

* Address reviewer's feedback

* Address reviewer's feedback

* Update CMakeLists.txt

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-03-13 00:53:08 +03:00
James Lamb 3a5e3c001f
[ci] ignore untitle Jupyter notebooks in .gitignore (#4047) 2021-03-05 15:20:55 +03:00
Nikita Titov 69798c3eb6
[python][tests] small Python tests cleanup (#3715) 2021-01-04 21:11:24 +03:00
James Lamb 85b9daa96b
[R-package] remove broken default for `file` in readRDS / saveRDS functions (#3664)
* [R-package] remove broken default file in readRDS / saveRDS functions

* empty commit
2021-01-03 10:58:34 -06:00
James Lamb b0122ab7a4
[ci] add credentials to gitignore (#3620) 2020-12-02 14:24:44 +03:00
James Lamb 335ba23197
ignore files from local Dask work (#3527) 2020-11-05 22:34:59 -06:00
James Lamb 9065d59cc9
[R-package] fix MM_PREFETCH and MM_MALLOC checks in configure.ac (#3510)
* [R-package] fix MM_PREFETCH and MM_MALLOC checks in configure.ac

* update gitignore
2020-10-31 23:30:38 -05:00
James Lamb 03c4d45541
[tests][python] reduce unnecessary data loading in tests (#3486)
* [ci] [python] reduce unnecessary data loading in tests

* add profiling files to gitignore

* just use cache()

* default on cache size

* patch lru_cache on Python 2.7

* linting

* reduce duplicated code

* missing warnings

* fix imports

* fix lru_cache backport

* missing kwargs

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* reduce duplicated code

* cache in test_plotting

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-10-29 17:48:26 +03:00
James Lamb 3a2686db86
[R-package] ignore temp files created by R on Mac (#3388) 2020-09-13 08:08:30 +03:00
James Lamb a9f5654b1d
[R-package] add some R build files to gitignore (#3271) 2020-08-04 15:30:22 +03:00
James Lamb aa933eb427
[R-package] make package installable with CRAN toolchain (fixes #2960) (#3188)
* [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>
2020-07-28 21:05:59 -05:00
Ruifeng Zheng af51428982
init (#3248) 2020-07-23 09:21:30 -05:00
James Lamb 314b9d2467
[R-package] [ci] Fix MiKTeX downloads (fixes #3198) (#3199)
* [R-package] [ci] Fix MiKTeX downloads (fixes #3198)

* use v2
2020-07-01 19:28:02 +03:00
James Lamb e83042f206
[R-package] Add support for R 4.0 (fixes #3064, fixes #3024) (#3065)
* [R-package] replaced gendef.exe with R code to create R.def (fixes #3064)

* fix broken things

* trying to add R4.0 docs

* changed make

* fixing make paths

* update notes on environment variables

* fix linting

* fixes to CI

* fixing build_cmd and other stuff

* fix bad substitution

* fix Azure Linux builds

* I am bad at bash

* simplifying

* only testing R

* getting better logs

* mingw32

* docs

* toolchain

* using msys

* fix visual studio condition

* toolchain test

* full CI

* fix if-elses

* bump allowed NOTEs

* search for Rscript

* updates to docs

* use processx

* fix mismatched arguments

* move CI to GitHub Actions

* minor changes

* fix workflow file

* fix templating

* fix Azure DevOps

* debugging windows builds

* dont shQuote file name

* all GitHub Actions jobs

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* minor cleanup

* remove objdump printing

* make file.remove() invisible

* Apply suggestions from code review

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>

* reduce duplicated paths in docs

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-06-14 08:56:34 +08:00
James Lamb 58e9b1da02
[R-package] [docs] fix warnings in pkgdown site building (#3086)
* [R-package] [docs] fix warnings in pkgdown sitte  building

* trying to get better Travis logs

* trying to get better Travis logs

* undo testing fix

* undo testing fix

* empty commit
2020-05-16 16:24:14 -05:00
James Lamb 9478e52f9f
[R-package] fix R examples and lgb.plot.interpretation() (#3002)
* [R-package] fix R examples and lgb.plot.interpretation

* remove space in gitignore

* try data.table from conda-forge

* update FAQ

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-04-21 13:47:23 -05:00
James Lamb 7f71c96c0e
[R-package] fixed some minor issues with testing on Windows (#2908) 2020-03-22 10:42:23 -05:00
James Lamb f449a78df3
[R-package] Added instructions for generating R test coverage (#2664) 2020-01-12 16:59:46 -06:00
Nikita Titov e7c6e67aaa
[tests] simplified test and added dumped data to gitignore (#2372) 2019-09-02 18:59:54 +03:00
Alexander L. Hayes 207bb3ef32 [docs] 🎨 Sphinx Autosummary for generating Python-API documentation (#2286)
* 🎨 `sphinx.ext.autosummary` for generating Python-API summaries

Add `docs/.gitignore` to not track autosummary stubs
Add `sphinx.ext.autosummary` in `docs/conf.py`
  Add 'members' and 'inherited-members' as default parameters
  Add 'autosummary = True' for setting output with `:toctree:`
Add `.. autosummary::` tags to replace `.. autoclass::`

Previously the `Python-API.rst` dumped all of the Python API onto
a single page.

This replaces the Python-API documentation with an index listing
all modules, and paginates all functions and classes onto
separate pages.

* ✏️ Corrections following feedback

Drop `docs/.gitignore` to use the general `.gitignore`
Add `show-inheritance` to `autodoc_default_flags` in `docs/conf.py`
Fix `both` to `class` in `autoclass_content` in `docs/conf.py`

* ✏️ Replacing deprecated Sphinx parameter

Fix deprecated `autodoc_default_flags` to `autodoc_default_options`

* ✏️ Adding `autodoc_default_flags` in to support early Sphinx versions

Add `autodoc_default_flags` with parameters from
  `autodoc_default_options`
2019-07-27 14:59:51 +03:00
Nikita Titov cfcc020e58
[ci][docs] generate docs for C API (#2059)
* use file to install deps for docs

* added C_API docs

* use breathe without exhale

* added missed params descriptions and make Doxygen fail for warnings

* escape char hotfix

* ignore unknown directive for rstcheck

* better handle env variable

* hotfix for 'Unknown directive type' error with C_API=NO

* Update .gitignore

* fixed pylint

* use already defined constants in conf.py

* do not suppress Doxygen's output

* addressed review comments

* removed unneeded import
2019-05-05 14:54:37 +03:00
Nikita Titov fb9b2b8af6
add IntelliJ IDEA to .gitignore (#2093) 2019-04-11 14:13:47 +03:00
James Lamb 82f803b3df updated gitignore to ignore files created by local python installation (#2061)
* updated gitignore to ignore files created by local python installation

* moved sections around in gitignore
2019-03-27 00:03:27 +03:00
Nikita Titov 7ab94e6bba [examples] updated tree index with categorical feature (#2044)
* updated gitignore

* updated tree index with cat feature
2019-03-14 10:51:48 +08:00
James Lamb f30809670a [docs] fixed minor typos in documentation (#1959)
* fixed minor typos in documentation

* fixed typo in gpu_tree_learner.cpp

* Update .gitignore
2019-01-22 14:25:51 +03:00
James Lamb eded794efb [R-package] CRAN fixes (#1499)
* Fixed typos in docs

* Fixed inconsistencies in documentation

* Updated strategy for registering routines

* Fixed issues caused by smashing multiple functions into one Rd

* Fixed issues with documentation

* Removed VignetteBuilder and updated Rbuildignore

* Added R build artefacts to gitignore

* Added namespacing on data.table set function. Updated handling of CMakeLists file to get around CRAN check.

* Updated build instructions

* Added R build script

* Removed build_r.sh script and updated R-package install instructions
2018-08-29 13:31:42 +09:00
Misha Lisovyi dae7551629 [python] Configure choice of `feature_importance_` in sklearn API (#1470)
* ignore vim temporary files

* add importance_type arg to sklearn API

* update documentation info

* remote a trailing space

* remove trailing space (again :))

* add instructions on importance choices to sklearn API

* drop mention of constructor in the feature type setting

* adding a test for different feture types

* remove trailing spaces, make shorter assert in feature importance type handling test

* fixing style issue introduced with the new test
2018-07-11 18:28:37 +03:00
Eric Graves cb9fabdae7 added code to expose c_api_pred_contrib in the R package (#1259)
* added code to expose c_api_pred_contrib in the R package

* removed Rprintf

* reverted to previous version of install.libs.R
2018-03-11 18:08:52 +08:00
wxchan bc0579c81b add init_score & test cpp and python result consistency (#1007)
* add init_score & test cpp and python result consistency

* try fix common.h

* Fix tests (#3)

* update atof

* fix bug

* fix tests.

* fix bug

* fix dtypes

* fix categorical feature override

* fix protobuf on vs build (#1004)

* [optional] support protobuf

* fix windows/LightGBM.vcxproj

* add doc

* fix doc

* fix vs support (#2)

* fix vs support

* fix cmake

* fix #1012

* [python] add network config api  (#1019)

* add network

* update doc

* add float tolerance in bin finder.

* fix a bug

* update tests

* add double torelance on tree model

* fix tests

* simplify the double comparison

* fix lightsvm zero base

* move double tolerance to the bin finder.

* fix pylint

* clean test.sh

* add sklearn test

* remove underline

* clean codes

* set random_state=None

* add last line

* fix doc

* rename file

* try fix test
2017-11-09 23:24:20 +08:00
Qiwei Ye 4c7f11aa37 clean vscode related file 2017-03-19 13:22:11 +08:00
wxchan 13d4581b96 add data_splitter to cv (#298)
* add data_splitter for cv

* update gitignore

* clean code
2017-02-18 20:46:44 +08:00
wxchan e9b82412ee fix .gitignore (#238) 2017-01-20 14:32:30 +08:00
Kirill Sevastyanenko 2035c54b3b Stylistic changes r package (#184)
* src & callbacks

* lgb.Booster and utils

* cv

* wip lgb.Dataset

* lgb.Dataset

* lgb.Predictor

* lgb.train

* typos

* add flags to facilitate macosx compilation

* fix basic_string template error with clang

* most unfortunate mode of development

* fixup tests

* last test

* roxygen

* roxygen v5.x.x
2017-01-11 08:20:00 +08:00
wxchan f3d33582ec re-define callback order (#114)
current problem:
callback order: user-defined in callback parameter -> reset_learning_rate/print_evaluation/record_evaluation/early_stop
user can't insert a callback between last 4 callbacks

solution:
set order variable:
reset_learning_rate = 10
print_evaluation = 10
record_evaluation = 20
early_stop = 30
user-defined = some int
default: according to index in callback parameter list, = index - len(callbacks) (all < 0)

current callback order:
before iter: user-defined -> reset_learning_rate -> user-defined
after iter: user-defined -> print_evaluation -> user-defined -> record_evaluation -> user-defined -> early_stop -> user-defined
2016-12-07 15:14:54 +08:00
Tsukasa OMOTO 531352f63e Add python things to .gitignore (#106) 2016-12-03 11:27:03 +08:00
Qiwei Ye 45a7a0ab0f fixing linux builds 2016-10-21 03:39:28 -07:00
Guolin Ke 1c774687cf first commit 2016-08-05 14:06:01 +08:00