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

73 Коммитов

Автор SHA1 Сообщение Дата
James Lamb 2792923d35
[R-package] Add version floor of R 3.5 (fixes #3212) (#3216) 2020-07-11 22:37:31 -05:00
Nikita Titov 5d2cc516a0
[docs] document option to build a static library (#3190) 2020-06-27 16:36:55 +03:00
Darby Payne 2e2757f183
Adding static library option (#3171) 2020-06-26 22:32:36 +03:00
James Lamb f77abac195
[R-package] CMake fixes to support MSVC (#2963)
* [R-package] CMake fixes to support MSVC

* simplifications

* Apply suggestions from code review

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* removed MSVC_RUNTIME_LIBRARY property

* fixed FindLibR search for LIBR_CORE_LIBRARY

* Update CMakeLists.txt

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* made R.lib linking more explicit

* add R_DOT_LIB_FILE to cache

* changed R.lib CMake name

* fix placementt tof R_MSVC_CORE_LIBRARY

* empty commit

* change MSVC library name

* one more name change

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-05-03 02:08:18 +03:00
James Lamb 84bdf25798
[R-package] adding routine registration in R package (fixes #1910) (#2911) 2020-04-01 11:18:52 -05:00
James Lamb 0341906c45
[R-package] Use Rprintf for logging in the R package (fixes #1440, fixes #1909) (#2901)
* [R-package] started cutting over from custom R-to-C interface to R.h

* replaced LGBM_SE with SEXP

* fixed error about ocnflicting definitions of length

* got linking working

* more stuff

* eliminated R CMD CHECK note about printing

* switched from hard-coded include dir to the one from FindLibR.cmake

* cleaned up formatting in FindLibR.cmake

* commented-out everything in CI that does not touch R

* more changes

* trying to get better logs

* tried ignoring

* added error message to confirm a suspicion

* still trying to find R during R CMD CHECK

* restore full CI

* fixed comment

* Update R-package/src/cmake/modules/FindLibR.cmake

* changed strategy for finding LIBR_HOME on Windows

* Removed 32-bit Windows stuff in FindLibR.cmake

* Update R-package/src/cmake/modules/FindLibR.cmake

* Update CMakeLists.txt

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update CMakeLists.txt

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* removed some duplication in cmake scripts

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* added LIBR_CORE_LIBRARY back

* small fixes to CMakeLists

* simplified FindLibR.cmake

* some fixes for windows

* Apply suggestions from code review

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* allowed for directly passing LIBR_EXECUTABLE to FindLibR.cmake

* reorganized FindLibR.cmake to catch more cases

* clean up inconsistencies  in R calls in FindLibR.cmake

* Update R-package/src/cmake/modules/FindLibR.cmake

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* removed unnecessary log messages

* removed unnecessary unset() call

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-03-24 03:11:30 +03:00
James Lamb 17b8ce16cf
[R-package] Introduce R-specific control of lib_lightgbm (#2837)
* [R-package] Introduced define LGB_BUILD_R to control compilation of lib_lightgbm for the R package

* fixed comment

* switched to cmake options

* fixed typo
2020-03-09 22:56:39 -05:00
Guolin Ke 8d90bbe314
Debug flags (#2825)
* add debug mode in camke

* add debug dll

* Apply suggestions from code review

Co-Authored-By: Nikita Titov <nekit94-08@mail.ru>

* fix naming

* Apply suggestions from code review

* Apply suggestions from code review

* Update LightGBM.sln

* refine

* run MPI job in debug mode

* document USE_DEBUG and USE_TIMETAG

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-03-01 08:15:25 +08:00
Guolin Ke 84fb5e518a
No LinkTimeCodeGeneration in VS (#2812)
* add Link Time Code Generation

* remove ltcg

* Apply suggestions from code review
2020-02-26 11:54:40 +08:00
Nikita Titov 1c1a276519 various minor style, docs and cpplint improvements (#2747)
* various minor style, docs and cpplint improvements

* fixed typo in warning

* fix recently added cpplint errors

* move note for params upper in description for consistency
2020-02-09 02:15:24 +03:00
Guolin Ke 509c2e50c2
Support both row-wise and col-wise multi-threading (#2699)
* commit

* fix a bug

* fix bug

* reset to track changes

* refine the auto choose logic

* sort the time stats output

* fix include

* change  multi_val_bin_sparse_threshold

* add cmake

* add _mm_malloc and _mm_free for cross platform

* fix cmake bug

* timer for split

* try to fix cmake

* fix tests

* refactor DataPartition::Split

* fix test

* typo

* formating

* Revert "formating"

This reverts commit 5b8de4f7fb.

* add document

* [R-package] Added tests on use of force_col_wise and force_row_wise in training (#2719)

* naming

* fix gpu code

* Update include/LightGBM/bin.h

Co-Authored-By: James Lamb <jaylamb20@gmail.com>

* Update src/treelearner/ocl/histogram16.cl

* test: swap compilers for CI

* fix omp

* not avx2

* no aligned for feature histogram

* Revert "refactor DataPartition::Split"

This reverts commit 256e6d9641.

* slightly refactor data partition

* reduce the memory cost

Co-authored-by: James Lamb <jaylamb20@gmail.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-02-02 12:42:17 +08:00
Guolin Ke d6c41fa1b2
check _mm_prefetch in cmake (#2694)
* try to use _mm_prefetch anywhere

* refine

* fix bug

* remove the unneeded prefetch
2020-01-15 22:08:11 +08:00
Nikita Titov 8944b5e6b9
removed OpenMP ugly fix for Mojave (#2674)
* removed OpenMP ugly fix for Mojave as it's fixed in latest CMake

* test: switch compilers

* switch compilers back
2020-01-12 16:51:27 +03:00
James Lamb e09e4caa4d fixed minor issues with R package (#2167) 2019-05-12 10:36:27 +02:00
Nikita Titov b40d0dc3d6
[ci][SWIG] fixed SWIG -Wstrict-aliasing warnings (#2139) 2019-05-04 23:42:18 +03:00
Nikita Titov 5ece53b5e0 [docs] updated the part about Boost in installation guide (#2082)
* updated installation guide

* updated Python installation guide

* added note about opencl path to Windows section

* added space before path in message

* minor correction for option description in Python installation guide
2019-04-30 10:53:49 -07:00
Nikita Titov 2961759337
minor fixes in CMakeLists (#2099)
* minor fixed in CMakeLists

* state what message is about
2019-04-17 15:03:32 +03:00
Ilya Matiach 414bb609c0 added LightGBM SWIG wrappers for macOS and updated docs (#2002)
* added LightGBM SWIG wrappers for macOS and updated docs

* updated installation instructions based on comments

* updated based on comments
2019-02-20 14:21:02 +08:00
Tsukasa OMOTO b96849918d
Fix build on macOS Mojave (#1923)
* Fix build on macOS Mojave

Fixed #1898

- https://iscinumpy.gitlab.io/post/omp-on-high-sierra/
- https://cliutils.gitlab.io/modern-cmake/chapters/packages/OpenMP.html
- https://github.com/Homebrew/homebrew-core/pull/20589

* update setup.py

* update docs

* fix setup.py

* update docs

* update docs

* update setup.py

* update docs
2019-01-26 13:40:59 +09:00
Nikita Titov 2aaf9b7516 [docs] Unified references and fixed typo (#1695)
* unified references

* fixed typo

* GPU version is quite stable now

* updated reference for GPU version
2018-09-24 11:47:55 -07:00
Ilya Matiach aac8e8f77a Added LightGBM JAVA SWIG wrapper support for windows (#1599) 2018-08-28 09:56:31 +08:00
Nikita Titov ad7738ac51
[ci] added tests with Clang/AppleClang compilation at Travis (#1522)
* added clang test

* hotfix

* downgrade required AppleCLang version

* fixed CMakeLists

* prevent case when CMake is downgraded by libomp

* fixed Clang test

* moved MSVC version check to the better place

* compile with Clang at Travis on Linux

* clear .travis.yml

* fixed indents

* added support of MPI test at Travis with macOS

* added FAQ entry about OpenMP library error

* updated installation guide

* moved APPLE_OUTPUT_DYLIB to other options

* fix check-docs test: ignore old url from error message

* added example of symlink command in FAQ

* fixed markdown

* capitalized heading

* updated Python installation guide

* changed mode in message command

* added notes about MinGW efficiency problems

* updated R-package installation guide

* use quotes for gcc version

* removed excess 'Note' phrase
2018-08-13 12:03:49 +03:00
Liwen Fan f5afaba162
Merge branch 'master' into 1492 2018-07-13 01:10:01 +08:00
Guolin Ke 1437ce8b8f
add vsts ci (#1497)
* fix bugs

* many fixes

* remove duplicate lines

* test for mingw

* Not nuget in appveyor

* remove mingw build

* Update test.sh

* Update test.sh

* Update test.sh

* fixed macOS wheel name

* don't run docs test at VSTS

* made nuget creating script directory independent
2018-07-12 23:43:59 +08:00
fanliwen 232112c878 move cmake_minimum_required to the top of the file where others are listed 2018-07-12 11:43:28 +08:00
fanliwen d6bd3c217d support AppleClang with openmp
https://github.com/Microsoft/LightGBM/issues/1492
2018-07-10 16:42:30 +08:00
Nikita Titov a39c848e64
[docs][python] made OS detection more reliable and little docs improvements (#1414)
* added missed description of plot_example in python_guide folder and fixed consistency for packages naming

* more reliable OS detection

* fixed grammar

* made pylint happy
2018-06-03 12:46:59 +03:00
Guolin Ke 49677098fe
fix R build for version 3.5 and above (#1346) 2018-04-28 08:22:29 +08:00
Jerry Liu 84fef71528 add force_split functionality (#1310) 2018-04-24 16:19:54 +08:00
Guolin Ke e005cdb049
Monotone Constraint (#1314) 2018-04-18 11:12:36 +08:00
ebernhardson 7e186a5783 Experimental support for HDFS (#1243)
* Read and write datsets from hdfs.
* Only enabled when cmake is run with -DUSE_HDFS:BOOL=TRUE
* Introduces VirtualFile(Reader|Writer) to asbtract VFS differences
2018-02-27 12:53:21 +08:00
Ilya Matiach 6d58decf51 Adding SWIG Java wrappers to LightGBM (#1223)
* Adding Java wrappers to LightGBM by updating CMakeLists and adding SWIG file

* Set SWIG generation to OFF by default

* Added -package option to SWIG_FLAGS

* Fixed jar structure to have class files in proper location

* removed link with OpenMP flags
2018-01-31 14:20:41 +08:00
Nikita Titov d51f2b4fb7 [ci] [docs] compilation on macOS (#1088)
* updated travis

* renamed OSX->macOS; updated gcc installation on macOS

* updated travis macos installation

 Please enter the commit message for your changes. Lines starting

* updated installation guide for macos

* fixed spelling

* renamed appveyor file

* updated Travis
2017-11-29 18:28:14 +08:00
Guolin Ke 8a5ec366aa
Speed up saving and loading model (#1083)
* remove protobuf

* add version number

* remove pmml script

* use float for split gain

* fix warnings

* refine the read model logic of gbdt

* fix compile error

* improve decode speed

* fix some bugs

* fix double accuracy problem

* fix bug

* multi-thread save model

* speed up save model to string

* parallel save/load model

* fix some warnings.

* fix warnings.

* fix a bug

* remove debug output

* fix doc

* fix max_bin warning in tests.

* fix max_bin warning

* fix pylint

* clean code for stringToArray

* clean code for TToString

* remove max_bin

* replace "class" with typename
2017-11-26 16:07:06 +08:00
Nikita Titov b3c20f7aba changed minimum version of VS to 2015 (#1027) 2017-11-01 13:55:58 +08:00
wxchan 2b20569e30 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
2017-10-26 09:16:07 +08:00
Guolin Ke 1ef3d43ecd Revert "[optional] support protobuf (#908)" (#1002)
This reverts commit 53b99854aa.
2017-10-20 21:12:09 +08:00
wxchan 53b99854aa [optional] support protobuf (#908) 2017-10-19 14:49:54 +08:00
Nikita Titov 6d34fb8635 [docs] move wiki to Read the Docs (#945)
* fixed Python-API references

* moved Features section to ReadTheDocs

* fixed index of ReadTheDocs

* moved Experiments section to ReadTheDocs

* fixed capital letter

* fixed citing

* moved Parallel Learning section to ReadTheDocs

* fixed markdown

* fixed Python-API

* fixed link to Quick-Start

* fixed gpu docker README

* moved Installation Guide from wiki to ReadTheDocs

* removed references to wiki

* fixed capital letters in headings

* hotfixes

* fixed non-Unicode symbols and reference to Python API

* fixed citing references

* fixed links in .md files

* fixed links in .rst files

* store images locally in the repo

* fixed missed word

* fixed indent in Experiments.rst

* fixed 'Duplicate implicit target name' message which is successfully
resolved by adding anchors

* less verbose

* prevented maito: ref creation

* fixed indents

* fixed 404

* fixed 403

* fixed 301

* fixed fake anchors

* fixed file extentions

* fixed Sphinx warnings

* added StrikerRUS profile link to FAQ

* added henry0312 profile link to FAQ
2017-10-07 23:43:58 +08:00
Nikita Titov 3cce5ee1fb fixed build with MinGW (#899) 2017-09-10 09:33:46 +08:00
Guolin Ke 959fb8fbe5 Update CMakeLists.txt 2017-07-24 12:21:50 +08:00
Guolin Ke 336288a376 Try to relax the cmake version (#723) 2017-07-24 10:44:08 +08:00
Qiwei Ye 1c21b1d810 Update CMakeLists.txt 2017-07-22 17:47:13 +08:00
Qiwei Ye 03705c3b8d Update CMakeLists.txt 2017-07-22 17:47:01 +08:00
Tsukasa OMOTO 6828461d03 Remove CMAKE_CXX_COMPILER and CMAKE_C_COMPILER for OSX (#719)
* Remove CMAKE_CXX_COMPILER and CMAKE_C_COMPILER for OSX

* update .travis/test.sh

* update again
2017-07-22 17:25:04 +08:00
Guolin Ke 2e0a8077c5 rollback cmakelists 2017-06-20 14:18:37 +08:00
Guolin Ke 80c641cd17 [python] Submit to PyPI (#635)
* add make command to the python package.

* Update README.rst

* Update README.rst

* Update README.rst

* fix tests.

* fix unix build

* update readme

* fix setup.py

* update travis

* Update .travis.yml

* Update test.py

* some fixes.

* check the 64-bit python

* fix build.

* refine MANIFEST.in

* update Manifest.in

* add more build options.

* Add fatal in cmake

* fix a endif.

* fix bugs.

* fix pep8

* add test for the pip package build

* add test pip install in travis.

* fix version with pre-compile dll

* fix readme.rst

* update readme
2017-06-20 13:17:02 +08:00
Guolin Ke f98d75fc7e Compile R package by custom tool chain. (#584)
* 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
2017-06-05 20:09:42 +08:00
Guolin Ke 6d4c7b03b7 Support early stopping of prediction in CLI (#565)
* 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 .
2017-05-30 18:28:17 +08:00
Tsukasa OMOTO 2bdc9859f8 Add -Wextra to compile options (#530) 2017-05-19 15:20:40 +08:00