1. 27 Oct, 2019 2 commits
  2. 15 Sep, 2019 1 commit
    • kenmatsu4's avatar
      [python] Bug fix for first_metric_only on earlystopping. (#2209) · 84754399
      kenmatsu4 authored
      * Bug fix for first_metric_only if the first metric is train metric.
      
      * Update bug fix for feval issue.
      
      * Disable feval for first_metric_only.
      
      * Additional test items.
      
      * Fix wrong assertEqual settings & formating.
      
      * Change dataset of test.
      
      * Fix random seed for test.
      
      * Modiry assumed test result due to different sklearn verion between CI and local.
      
      * Remove f-string
      
      * Applying variable  assumed test result for test.
      
      * Fix flake8 error.
      
      * Modifying  in accordance with review comments.
      
      * Modifying for pylint.
      
      * simplified tests
      
      * Deleting error criteria `if eval_metric is None`.
      
      * Delete test items of classification.
      
      * Simplifying if condition.
      
      * Applying first_metric_only for sklearn wrapper.
      
      * Modifying test_sklearn for comforming to python 2.x
      
      * Fix flake8 error.
      
      * Additional fix for sklearn and add tests.
      
      * Bug fix and add test cases.
      
      * some refactor
      
      * fixed lint
      
      * fixed lint
      
      * Fix duplicated metrics scores to pass the test.
      
      * Fix the case first_metric_only not in params.
      
      * Converting metrics aliases.
      
      * Add comment.
      
      * Modify comment for pylint.
      
      * Modify comment for pydocstyle.
      
      * Using split test set for two eval_set.
      
      * added test case for metric aliases and length checks
      
      * minor style fixes
      
      * fixed rmse name and alias position
      
      * Fix the case metric=[]
      
      * Fix using env.model._train_data_name
      
      * Fix wrong test condition.
      
      * Move initial process to _init() func.
      
      * Modify test setting for test_sklearn & training data matching on callback.py
      
      * test_sklearn.py
      -> A test case for training is wrong, so fixed.
      
      * callback.py
      -> A condition of if statement for detecting test dataset is wrong, so fixed.
      
      * Support composite name metrics.
      
      * Remove metric check process & reduce redundant test cases.
      
      For #2273 fixed not only the order of metrics in cpp, removing metric check process at callback.py
      
      * Revised according to the matters pointed out on a review.
      
      * increased code readability
      
      * Fix the issue of order of validation set.
      
      * Changing to OrderdDict from default dict for score result.
      
      * added missed check in cv function for first_metric_only and feval co-occurrence
      
      * keep order only for metrics but not for datasets in best_score
      
      * move OrderedDict initialization to init phase
      
      * fixed minor printing issues
      
      * move first metric detection to init phase and split can be performed without checks
      
      * split only once during callback
      
      * removed excess code
      
      * fixed typo in variable name and squashed ifs
      
      * use setdefault
      
      * hotfix
      
      * fixed failing test
      
      * refined tests
      
      * refined sklearn test
      
      * Making "feval" effective on early stopping.
      
      * allow feval and first_metric_only for cv
      
      * removed unused code
      
      * added tests for feval
      
      * fixed printing
      
      * add note about whitespaces in feval name
      
      * Modifying final iteration process in case valid set is  training data.
      84754399
  3. 03 Sep, 2019 1 commit
  4. 24 Aug, 2019 1 commit
    • Guolin Ke's avatar
      normalize the lambdas in lambdamart objective (#2331) · 0dfda826
      Guolin Ke authored
      * norm the lambda scores
      
      * change default to false
      
      * update doc
      
      * typo
      
      * Update Parameters.rst
      
      * Update config.h
      
      * Update test_sklearn.py
      
      * Update test_sklearn.py
      
      * Update test_sklearn.py
      
      * Update test_sklearn.py
      
      * Update test_sklearn.py
      
      * Update rank_objective.hpp
      
      * Update Parameters.rst
      
      * Update config.h
      
      * Update test_sklearn.py
      
      * Update test_sklearn.py
      
      * Update test_sklearn.py
      0dfda826
  5. 17 Aug, 2019 1 commit
    • sbruch's avatar
      sigmoid_ in grad and hess for rank objective (#2322) · aee92f63
      sbruch authored
      * Lambdas and hessians need to factor sigmoid_ into the computation. Additionally, the sigmoid function has an arbitrary factor of 2 in the exponent; it is not just non-standard but the gradients are not computed correctly anyway.
      
      * Update unit test
      
      * Also remove a heuristic that normalizes the gradient by the difference in scores.
      
      * Also fix unit test after removing the heuristic
      aee92f63
  6. 13 Aug, 2019 1 commit
  7. 20 Jun, 2019 1 commit
  8. 04 Jun, 2019 1 commit
  9. 27 May, 2019 1 commit
  10. 08 May, 2019 1 commit
  11. 22 Apr, 2019 1 commit
  12. 19 Apr, 2019 1 commit
  13. 02 Feb, 2019 1 commit
  14. 30 Jan, 2019 1 commit
    • Guolin Ke's avatar
      fix nan in eval results (#1973) · feeaf38f
      Guolin Ke authored
      * always save the score of the first round in early stopping
      
      fix #1971
      
      * avoid using std::log on non-positive numbers
      
      * remove unnecessary changes
      
      * add tests
      
      * Update test_sklearn.py
      
      * enhanced tests
      feeaf38f
  15. 27 Jan, 2019 1 commit
    • Nikita Titov's avatar
      [tests][python] added tests for metrics' behavior and fixed case for... · f9a1465d
      Nikita Titov authored
      [tests][python] added tests for metrics' behavior and fixed case for multiclass task with custom objective (#1954)
      
      * added metrics test for standard interface
      
      * simplified code
      
      * less trees
      
      * less trees
      
      * use dummy custom objective and metric
      
      * added tests for multiclass metrics aliases
      
      * fixed bug in case of custom obj and num_class > 1
      
      * added metric test for sklearn wrapper
      f9a1465d
  16. 20 Dec, 2018 1 commit
  17. 11 Oct, 2018 1 commit
  18. 10 Oct, 2018 1 commit
  19. 28 Sep, 2018 1 commit
  20. 25 Jul, 2018 1 commit
  21. 11 Jul, 2018 1 commit
    • Misha Lisovyi's avatar
      [python] Configure choice of `feature_importance_` in sklearn API (#1470) · dae75516
      Misha Lisovyi authored
      * 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
      dae75516
  22. 20 Jun, 2018 1 commit
  23. 09 Jun, 2018 1 commit
    • Nikita Titov's avatar
      [python] make tree rendering more clear (#1424) · 69a36605
      Nikita Titov authored
      * fixed grammar
      
      * fixed params description in graph plotting functions
      
      * clarified types of attributes in their descriptions
      
      * increased readability of graphs by adding spaces
      
      * added precision parameter to plot tree functions
      69a36605
  24. 10 May, 2018 1 commit
    • Nikita Titov's avatar
      [python][docs] reworked predict method in sklearn wrapper and docs improvements (#1351) · 41152eab
      Nikita Titov authored
      * fixed docs
      
      * reworker predict method of sklearn wrapper
      
      * fixed encapsulation
      
      * added test
      
      * fixed consistency between docstring and params docs
      
      * fixed verbose
      
      * replaced predict_proba with predict in test
      
      * fixed verbose again
      
      * fixed fraction params descriptions
      
      * added description of skip_drop and drop_rate constraints
      
      * fixed subsample_freq consistency with C++ default value
      
      * fixed nice look of params list
      
      * made force splits json file example clickable
      
      * fixed nice look of metrics list and added comma
      
      * reduced warning in test about same param specified twice
      
      * replaced pred_parameter with **kwargs in predict method
      
      * added test for **kwargs in predict method
      
      * fixed warnings
      
      * fixed pylint
      41152eab
  25. 19 Sep, 2017 1 commit
  26. 08 Sep, 2017 1 commit
    • Nikita Titov's avatar
      [python] [setup] improving installation (#880) · 8984111f
      Nikita Titov authored
      * disabled logs from compilers; fixed #874
      
      * fixed safe clear_fplder
      
      * added windows folder to manifest.in
      
      * added windows folder to build
      
      * added library path
      
      * added compilation with MSBuild from .sln-file
      
      * fixed unknown PlatformToolset returns exitcode 0
      
      * hotfix
      
      * updated Readme
      
      * removed return
      
      * added installation with mingw test to appveyor
      
      * let's test appveyor with both VS 2015 and VS 2017; but MinGW isn't installed on VS 2017 image
      
      * fixed built-in name 'file'
      
      * simplified appveyor
      
      * removed excess data_files
      
      * fixed unreadable paths
      
      * separated exceptions for cmake and mingw
      
      * refactored silent_call
      
      * don't create artifacts with VS 2015 and mingw
      
      * be more precise with python versioning in Travis
      
      * removed unnecessary if statement
      
      * added classifiers for PyPI and python versions badge
      
      * changed python version in travis
      
      * added support of scikit-learn 0.18.x
      
      * added more python versions to Travis
      
      * added more python versions to Appveyor
      
      * reduced number of tests in Travis
      
      * Travis trick is not needed anymore
      
      * attempt to fix according to https://github.com/Microsoft/LightGBM/pull/880#discussion_r137438856
      8984111f
  27. 05 Sep, 2017 2 commits
    • Nikita Titov's avatar
      [python] fixed sklearn test on python 2.7 (#888) · db8b6b00
      Nikita Titov authored
      * fixed sklearn test on python 2.7
      
      * commit to show that problem has been solved
      
      * come back to python 3.6
      
      * removed warnings check
      db8b6b00
    • Nikita Titov's avatar
      [python] improved sklearn interface (#870) · 015c8fff
      Nikita Titov authored
      * improved sklearn interface; added sklearns' tests
      
      * moved best_score into the if statement
      
      * improved docstrings; simplified LGBMCheckConsistentLength
      
      * fixed typo
      
      * pylint
      
      * updated example
      
      * fixed Ranker interface
      
      * added missed boosting_type
      
      * fixed more comfortable autocomplete without unused objects
      
      * removed check for None of eval_at
      
      * fixed according to review
      
      * fixed typo
      
      * added description of fit return type
      
      * dictionary->dict for short
      
      * markdown cleanup
      015c8fff
  28. 23 Aug, 2017 1 commit
  29. 20 Aug, 2017 1 commit
  30. 11 May, 2017 1 commit
  31. 06 May, 2017 1 commit
  32. 02 May, 2017 1 commit
  33. 26 Apr, 2017 1 commit
  34. 12 Jan, 2017 2 commits
  35. 04 Jan, 2017 1 commit
    • wxchan's avatar
      python code style with pep8 (#161) · dd425973
      wxchan authored
      * format python code with pep8
      
      * **DO NOT MERGE** deliberately break rules to see what will happen during check
      
      * Revert "**DO NOT MERGE** deliberately break rules to see what will happen during check"
      
      This reverts commit 0db93cd7a43c7efa43a2112ada43d46c6f9115d9.
      
      * fix format in test.py
      
      * add docs for pep-8
      dd425973
  36. 03 Jan, 2017 1 commit
  37. 01 Jan, 2017 1 commit
    • wxchan's avatar
      support pickle (#151) · a034ceeb
      wxchan authored
      * support pickle
      
      * add pickle/joblib test; change test_basic to unittest
      
      * remove file for deepcopy
      
      * fix tests
      
      * test basic predict from file
      
      * Revert "test basic predict from file"
      
      This reverts commit 60d2c3158537fd56081f60f1d6d120cedd782887.
      
      * test predict from file
      
      * use tempfile for copy & pickle
      
      * use tempfile w/o binary mode
      
      * clean test
      a034ceeb