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

119 Коммитов

Автор 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 a70e832782
[R-package] [python-package] deprecate Dataset arguments to cv() and train() (#6446) 2024-05-10 19:26:39 -05:00
James Lamb 631e0a2a7b
[ci] prevent trailing whitespace, ensure files end with newline (#6373) 2024-03-18 23:24:14 -05:00
James Lamb 1b792e7166
[ci] [python-package] enable ruff-format on tests and examples (#6317) 2024-02-21 12:15:38 -06:00
Green-16 18352475e0
Use ROC-AUC metric for classification model in examples (#5440)
* [Python-package] FIX fix the metrics of classify module

* [Python-package] FIX fix the metrics of classify module

* [Python-package] FIX fix the metrics of classify module

* [Python-package] FIX fix the metrics of classify module

* [Python-package] FIX fix the metrics of classify module
2022-08-30 16:42:34 +03:00
Miguel Trejo Marrufo 416ecd5a8d
[python-package] remove 'fobj' in favor of passing custom objective function in params (fixes #3244) (#5052)
* feat: support custom metrics in params

* feat: support objective in params

* test: custom objective and metric

* fix: imports are incorrectly sorted

* feat: convert eval metrics str and set to list

* feat: convert single callable eval_metric to list

* test: single callable objective in params

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* feat: callable fobj in basic cv function

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: cv support objective callable

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* fix: assert in cv_res

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* docs: objective callable in params

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* recover test_boost_from_average_with_single_leaf_trees

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* linters fail

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* remove metrics helper functions

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* feat: choose objective through _choose_param_values

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: test objective through _choose_param_values

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: test objective is callabe in train

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: parametrize choose_param_value with objective aliases

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: cv booster metric is none

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* fix: if string and callable choose callable

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test train uses custom objective metrics

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: cv uses custom objective metrics

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* refactor: remove fobj parameter in train and cv

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* refactor: objective through params in sklearn API

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* custom objective function in advanced_example

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* fix whitespackes lint

* objective is none not a particular case for predict method

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* replace scipy.expit with custom implementation

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* test: set num_boost_round value to 20

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* fix: custom objective default_value is none

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* refactor: remove self._fobj

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* custom_objective default value is None

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* refactor: variables name reference dummy_obj

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* linter errors

* fix: process objective parameter when calling predict

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>

* linter errors

* fix: objective is None during predict call

Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>
2022-04-21 22:41:49 -05:00
Nikita Titov ce486e5b45
[python] remove `early_stopping_rounds` argument of `train()` and `cv()` functions (#4908) 2021-12-26 17:20:49 +03:00
Nikita Titov e4c0ca5f5d
[python] remove `evals_result` argument of `train()` function (#4882) 2021-12-23 04:57:09 +03:00
Nikita Titov 9f13a9c897
[python] remove `verbose_eval` argument of `train()` and `cv()` functions (#4878)
* remove `verbose_eval` argument

* update example Notebook
2021-12-12 21:02:15 +03:00
Nikita Titov f71328d410
[python][sklearn] Remove `early_stopping_rounds` argument of `fit()` method (#4846) 2021-12-11 01:21:19 +03:00
Nikita Titov b81f7dd6ce
[python] remove `learning_rates` argument of `train()` function(#4831) 2021-11-28 19:55:47 -06:00
Nikita Titov c6199311de
[python][docs] Refer to string type as `str` and add commas in `list of ...` types (#4557)
* Reffer to string type as `str` and and commas in `list of ...` types

* update `libpath.py` too
2021-08-27 22:47:39 +03:00
James Lamb fdc582ea6b
[docs] document CLI behavior when label_column is omitted (#4485) 2021-07-24 23:05:48 -05:00
James Lamb 5d40dc4b68
remove examples/.gitignore (#4486) 2021-07-24 15:54:51 +03:00
James Lamb e36cc9c171
[python-package] use toarray() instead of todense() in tests and examples (#4446) 2021-07-07 01:12:47 +03:00
Nikita Titov bc9d34e4e6
[python] migrate to pathlib in python examples (#4428) 2021-07-04 16:42:33 +03:00
Nikita Titov 3594f36937
[python] migrate to f-strings in interactive_plot_example.ipynb (#4430) 2021-07-03 23:16:28 -05:00
Chen Yufei c359896e9b
[python-package] Create Dataset from multiple data files (#4089)
* [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: James 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 10bd79f7f8.

* 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: shiyu1994 <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: James 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: James Lamb <jaylamb20@gmail.com>

* Doc fixes, remove unused params_str in __init_from_seqs.

* Apply suggestions from code review

Co-authored-by: Nikita 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: Nikita 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: Nikita 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: Nikita 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: Nikita 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: Nikita Titov <nekit94-08@mail.ru>

* Apply suggestions from code review

Co-authored-by: shiyu1994 <shiyu_k1994@qq.com>

* Remove no longer used DEFAULT_BIN_CONSTRUCT_SAMPLE_CNT.

* Update python-package/lightgbm/basic.py

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

Co-authored-by: Willian Zhang <willian@willian.email>
Co-authored-by: Willian Z <Willian@Willian-Zhang.com>
Co-authored-by: James Lamb <jaylamb20@gmail.com>
Co-authored-by: shiyu1994 <shiyu_k1994@qq.com>
Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-07-02 15:17:17 +03:00
Aman Prakash Jha f37b0d463f
[python-package] f-string format updated in plot_example.py (#4421)
* f-string format updated.

* space removed

* Update examples/python-guide/plot_example.py according to suggestion.

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

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-07-02 15:10:40 +03:00
sayantan sadhu 47208894d8
[python] use f-strings for concatenation in examples/python-guide/advanced_example.py (#4386)
* Improved the syntax of the fstrings

* Improved the strings to fstrings

* Reverted back the white space.

* Update examples/python-guide/advanced_example.py

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

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-06-22 23:22:35 -05:00
Nikita Titov bd21efed4f
[python] Improving the syntax of `print`s in `simple_example.py` and `sklearn_example.py` (#4396)
* Update simple_example.py

* Update sklearn_example.py
2021-06-22 15:44:26 -05:00
Sagnik Roy 8e5079efa1
[python-package] use f-strings for concatenation in examples/python-guide/logistic_regression.py (#4356)
* updated with f-string migration

* Update logistic_regression.py

* Update logistic_regression.py

* Update logistic_regression.py

* Update logistic_regression.py
2021-06-08 17:20:24 -05:00
Nikita Titov f076ca58b3
improve error message for required packages (#4304) 2021-05-20 14:33:20 -05:00
Andrew Ziem e79716e0b6
Correct spelling (#4250)
* Correct spelling

Most changes were in comments, and there were a few changes to literals for log output.

There were no changes to variable names, function names, IDs, or functionality.

* Clarify a phrase in a comment

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Clarify a phrase in a comment

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Clarify a phrase in a comment

Co-authored-by: James Lamb <jaylamb20@gmail.com>

* Correct spelling

Most are code comments, but one case is a literal in a logging message.

There are a few grammar fixes too.

Co-authored-by: James Lamb <jaylamb20@gmail.com>
2021-05-04 10:10:55 -05:00
Nikita Titov b044070e21
[ci] run Dask examples on CI (#4064)
* Update Parallel-Learning-Guide.rst

* Update test.sh

* fix path

* address review comments
2021-03-14 21:58:15 -05:00
James Lamb 15853a7a02
[dask] add tutorial documentation (fixes #3814, fixes #3838) (#4030)
* [dask] add tutorial documentation (fixes #3814, fixes #3838)

* add notes on saving the model

* quick start examples

* add examples

* fix timeouts in examples

* remove notebook

* fill out prediction section

* table of contents

* add line back

* linting

* isort

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* move examples under python-guide

* remove unused pickle import

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-03-10 13:34:43 -06:00
James Lamb 7171558444
[doc] Reorganize documentation on distributed learning (fixes #3596) (#3951)
* rework distributed learning page

* more references

* more changes

* more changes

* add anchors for olds links

* revert changes from #4000

* fix links

* more links

* Apply suggestions from code review

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

* Update docs/Parallel-Learning-Guide.rst

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

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2021-02-21 20:43:02 -06:00
James Lamb 7880b79fde
[docs] Change some 'parallel learning' references to 'distributed learning' (#4000)
* [docs] Change some 'parallel learning' references to 'distributed learning'

* found a few more

* one more reference
2021-02-19 09:47:30 -06:00
Zhuyi Xue a630da3e21
[ci][python] apply isort to examples/python-guide/sklearn_example.py #3958 (#3965) 2021-02-15 17:49:43 +03:00
Zhuyi Xue e5eafad2ba
[ci][python] apply isort to examples/python-guide/simple_example.py #3958 (#3964) 2021-02-15 05:28:19 +03:00
Zhuyi Xue 5cb2558d13
[ci][python] apply isort to examples/python-guide/plot_example.py #3958 (#3963) 2021-02-15 05:22:45 +03:00
Zhuyi Xue 3bf0ba22f0
[ci][python] apply isort to examples/python-guide/logistic_regression.py #3958 (#3962) 2021-02-15 04:35:07 +03:00
Zhuyi Xue 0db87dce61
[ci][python] apply isort to examples/python-guide/advanced_example.py #3958 (#3961) 2021-02-15 03:52:46 +03:00
Belinda Trotta fcfd4132e6
Trees with linear models at leaves (#3299)
* Add Eigen library.

* Working for simple test.

* Apply changes to config params.

* Handle nan data.

* Update docs.

* Add test.

* Only load raw data if boosting=gbdt_linear

* Remove unneeded code.

* Minor updates.

* Update to work with sk-learn interface.

* Update to work with chunked datasets.

* Throw error if we try to create a Booster with an already-constructed dataset having incompatible parameters.

* Save raw data in binary dataset file.

* Update docs and fix parameter checking.

* Fix dataset loading.

* Add test for regularization.

* Fix bugs when saving and loading tree.

* Add test for load/save linear model.

* Remove unneeded code.

* Fix case where not enough leaf data for linear model.

* Simplify code.

* Speed up code.

* Speed up code.

* Simplify code.

* Speed up code.

* Fix bugs.

* Working version.

* Store feature data column-wise (not fully working yet).

* Fix bugs.

* Speed up.

* Speed up.

* Remove unneeded code.

* Small speedup.

* Speed up.

* Minor updates.

* Remove unneeded code.

* Fix bug.

* Fix bug.

* Speed up.

* Speed up.

* Simplify code.

* Remove unneeded code.

* Fix bug, add more tests.

* Fix bug and add test.

* Only store numerical features

* Fix bug and speed up using templates.

* Speed up prediction.

* Fix bug with regularisation

* Visual studio files.

* Working version

* Only check nans if necessary

* Store coeff matrix as an array.

* Align cache lines

* Align cache lines

* Preallocation coefficient calculation matrices

* Small speedups

* Small speedup

* Reverse cache alignment changes

* Change to dynamic schedule

* Update docs.

* Refactor so that linear tree learner is not a separate class.

* Add refit capability.

* Speed up

* Small speedups.

* Speed up add prediction to score.

* Fix bug

* Fix bug and speed up.

* Speed up dataload.

* Speed up dataload

* Use vectors instead of pointers

* Fix bug

* Add OMP exception handling.

* Change return type of LGBM_BoosterGetLinear to bool

* Change return type of LGBM_BoosterGetLinear back to int, only parameter type needed to change

* Remove unused internal_parent_ property of tree

* Remove unused parameter to CreateTreeLearner

* Remove reference to LinearTreeLearner

* Minor style issues

* Remove unneeded check

* Reverse temporary testing change

* Fix Visual Studio project files

* Restore LightGBM.vcxproj.filters

* Speed up

* Speed up

* Simplify code

* Update docs

* Simplify code

* Initialise storage space for max num threads

* Move Eigen to include directory and delete unused files

* Remove old files.

* Fix so it compiles with mingw

* Fix gpu tree learner

* Change AddPredictionToScore back to const

* Fix python lint error

* Fix C++ lint errors

* Change eigen to a submodule

* Update comment

* Add the eigen folder

* Try to fix build issues with eigen

* Remove eigen files

* Add eigen as submodule

* Fix include paths

* Exclude eigen files from Python linter

* Ignore eigen folders for pydocstyle

* Fix C++ linting errors

* Fix docs

* Fix docs

* Exclude eigen directories from doxygen

* Update manifest to include eigen

* Update build_r to include eigen files

* Fix compiler warnings

* Store raw feature data as float

* Use float for calculating linear coefficients

* Remove eigen directory from GLOB

* Don't compile linear model code when building R package

* Fix doxygen issue

* Fix lint issue

* Fix lint issue

* Remove uneeded code

* Restore delected lines

* Restore delected lines

* Change return type of has_raw to bool

* Update docs

* Rename some variables and functions for readability

* Make tree_learner parameter const in AddScore

* Fix style issues

* Pass vectors as const reference when setting tree properties

* Make temporary storage of serial_tree_learner mutable so we can make the object's methods const

* Remove get_raw_size, use num_numeric_features instead

* Fix typo

* Make contains_nan_ and any_nan_ properties immutable again

* Remove data_has_nan_ property of tree

* Remove temporary test code

* Make linear_tree a dataset param

* Fix lint error

* Make LinearTreeLearner a separate class

* Fix lint errors

* Fix lint error

* Add linear_tree_learner.o

* Simulate omp_get_max_threads if openmp is not available

* Update PushOneData to also store raw data.

* Cast size to int

* Fix bug in ReshapeRaw

* Speed up code with multithreading

* Use OMP_NUM_THREADS

* Speed up with multithreading

* Update to use ArrayToString

* Fix tests

* Fix test

* Fix bug introduced in merge

* Minor updates

* Update docs
2020-12-24 14:01:23 +08:00
Nikita Titov 44a6fb7ffa
[python] Drop Python 2 support (#3581)
* 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 4ff6ffc7e3.
2020-12-09 13:32:00 +03:00
nabokovas 0ab9f97ae9
[docs] added Data Science Bowl Comp Solution 2019 (#3503) 2020-10-30 17:16:30 +03:00
Nikita Titov adfc9f5c61
[docs] remove unrelated entry from winning solutions list (#3370) 2020-09-08 18:40:32 +03:00
Nikita Titov 116abc6789
[python][examples] updated examples with multiple custom metrics (#3367) 2020-09-08 17:44:26 +03:00
Juniper-23 d3fb6c9fc8
[docs] update list of winning solutions in data science competitions (#3358)
* 'examples/README.md'

* 'examples\README.md'

Co-authored-by: Tripathi, Aishwarya <aishwarya_tripathi@dell.com>
Co-authored-by: James Lamb <jaylamb20@gmail.com>
2020-09-07 19:32:07 -05:00
Julio Antonio Soto 06ff67eb7d
[doc] Added winning solution using LightGBM (#3314)
Added winning solution using LightGBM for M5 forecasting competition
2020-08-18 20:14:08 +08:00
Nikita Titov c633c6c2af
[python] Re-enable scikit-learn 0.22+ support (#2949)
* Revert "specify the last supported version of scikit-learn (#2637)"

This reverts commit d100277649.

* ban scikit-learn 0.22.0 and skip broken test

* fix updated test

* fix lint test

* Revert "fix lint test"

This reverts commit 8b4db0805f.
2020-04-10 12:53:21 +09:00
Guolin Ke 3c394c8d77
remove init-score parameter (#2776)
* remove related cpp codes

* removed more mentiones of init_score_filename params

Co-authored-by: Nikita Titov <nekit94-08@mail.ru>
2020-02-20 10:07:57 +08:00
sbruch 86530988a0
Implementation of XE_NDCG_MART for the ranking task (#2620)
* Implementation of XE_NDCG loss function for ranking.

* Add citation

* Check in example usage for xe_ndcg loss.

* Seed the generator when a seed is provided in the config. Add unit-tests for xe_ndcg

* Update documentation

* Fix indentation

* Address issues raised by reviewers.

* Clean up include statements.

* Fix issues raised by reviewers.

* Regenerate parameters.rst

* Add a note to explain that reproducing xe_ndcg results requires num_threads to be one.

* Introduce objective_seed and use that in rank_xendcg instead of directly using seed

* Change default value of objective_seed
2020-01-30 11:14:11 +08:00
Nikita Titov d100277649 specify the last supported version of scikit-learn (#2637) 2019-12-19 19:00:29 +08:00
Belinda Trotta 222775ca29 auc-mu metric (#2567)
* Fix bug where small values of max_bin cause crash.

* Revert "Fix bug where small values of max_bin cause crash."

This reverts commit fe5c8e2547.

* Add auc-mu multiclass metric.

* Fix bug where scores are equal.

* Merge.

* Change name to auc_mu everywhere (instead of auc-mu).

* Fix comparison between signed and unsigned int.

* Change name to AUC-mu in docs and output messages.

* Improve test.

* Use prefix increment.

* Update R package.

* Fix style issues.

* Tidy up test code.

* Read all lines first then process.

* Allow passing AUC-mu weights directly as a list in parameters.

* Remove unused code, improve example and docs.
2019-12-12 23:27:27 +03:00
James Lamb bdaac32a1f [docs] updated records of kaggle competitions (#2621) 2019-12-08 02:26:47 +03:00
Nikita Titov 69c1c33093
[python][R-package] warn users about untransformed values in case of custom obj (#2611) 2019-12-05 16:53:13 +03:00
Nikita Titov 16c551c13d
[docs] updated instructions in examples to match ones from ranking example (#2585)
* updated instructions in examples to match one from ranking example

* removed excess new line
2019-11-22 20:03:00 +03:00
Malcolm Greaves 49df9e60d7 [docs] Update LambdaRank example documentation (#2548)
- Add reference to documentation on the query data format.
- Refer readers to the official install instructions.
- Change command to use relative path to the `lightgbm` binary built at
the project's root when following build instructions.
2019-11-22 17:25:33 +03:00
Nikita Titov 00d1e6938a
[python] removed unused pylint directives (#2466) 2019-10-27 03:18:10 +03:00