1. 10 Apr, 2021 1 commit
  2. 15 Mar, 2021 1 commit
  3. 24 Jan, 2021 1 commit
  4. 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
  5. 03 Feb, 2020 1 commit
  6. 27 Oct, 2019 1 commit
  7. 22 Oct, 2019 1 commit
  8. 26 Sep, 2019 1 commit
  9. 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
  10. 25 Mar, 2019 1 commit
    • kenmatsu4's avatar
      [python] Use first_metric_only flag for early_stopping function. (#2049) · 011cc90a
      kenmatsu4 authored
      * Use first_metric_only flag for early_stopping function.
      
      In order to apply early stopping with only first metric, applying first_metric_only flag for early_stopping function.
      
      * upcate comment
      
      * Revert "upcate comment"
      
      This reverts commit 1e75a1a415cc16cfbe795181e148ebfe91469be4.
      
      * added test
      
      * fixed docstring
      
      * cut comment and save one line
      
      * document new feature
      011cc90a
  11. 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
  12. 10 Dec, 2018 1 commit
  13. 16 Oct, 2018 1 commit
  14. 25 Sep, 2018 1 commit
  15. 27 Aug, 2018 1 commit
  16. 31 Jul, 2018 1 commit
  17. 24 May, 2018 1 commit
  18. 23 Dec, 2017 1 commit
  19. 07 Sep, 2017 1 commit
    • Nikita Titov's avatar
      [docs] [python] docstrings improving (#894) · de51990e
      Nikita Titov authored
      * fixed description of Dataset
      
      * fixed description of Booster
      
      * fixed description of train
      
      * fixed description of cv
      
      * fixed description of callbacks
      
      * fixed description of plotting
      
      * hotfixes
      de51990e
  20. 06 Jul, 2017 1 commit
  21. 15 Apr, 2017 1 commit
  22. 28 Mar, 2017 1 commit
  23. 16 Jan, 2017 1 commit
  24. 10 Jan, 2017 1 commit
    • wxchan's avatar
      refine compatibility (#186) · 76c44d78
      wxchan authored
      * add compat.py
      
      * unify types
      
      * range/xrange -> range_
      
      * move argc_ to compat.py; add is_numeric error type
      
      * use simplejson for json
      
      * move json to compat.py
      
      * move pandas to compat.py
      
      * move sklearn to compat.py
      
      * remove unused function
      
      * fix 'unify types'
      
      * argc_ (lambda -> def)
      76c44d78
  25. 08 Jan, 2017 1 commit
  26. 06 Jan, 2017 1 commit
  27. 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
  28. 23 Dec, 2016 1 commit
    • wxchan's avatar
      rewrite test with unittest (#142) · db18367e
      wxchan authored
      * add troubleshooting
      
      * use unittest
      
      * update unittest version
      
      * fix test_engine.py
      
      * fix test_sklearn.py
      
      * default eval_metric by subclass
      
      * add test grid search
      
      * remove verbose_eval
      db18367e
  29. 18 Dec, 2016 1 commit
  30. 14 Dec, 2016 1 commit
  31. 09 Dec, 2016 1 commit
  32. 07 Dec, 2016 1 commit
    • wxchan's avatar
      re-define callback order (#114) · f3d33582
      wxchan authored
      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
      f3d33582
  33. 06 Dec, 2016 1 commit
  34. 02 Dec, 2016 1 commit
    • wxchan's avatar
      Squash into one commit: · eba6d200
      wxchan authored
      1. merge python-package
      2. add dump model to json
      3. fix bugs
      4. clean code with pylint
      5. update python examples
      eba6d200
  35. 01 Dec, 2016 2 commits
  36. 30 Nov, 2016 1 commit
  37. 29 Nov, 2016 3 commits