1. 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
  2. 14 Mar, 2019 1 commit
  3. 09 Mar, 2019 1 commit
  4. 07 Mar, 2019 1 commit
  5. 26 Feb, 2019 1 commit
    • remcob-gr's avatar
      Add ability to move features from one data set to another in memory (#2006) · 219c943d
      remcob-gr authored
      * Initial attempt to implement appending features in-memory to another data set
      
      The intent is for this to enable munging files together easily, without needing to round-trip via numpy or write multiple copies to disk.
      In turn, that enables working more efficiently with data sets that were written separately.
      
      * Implement Dataset.dump_text, and fix small bug in appending of group bin boundaries.
      
      Dumping to text enables us to compare results, without having to worry about issues like features being reordered.
      
      * Add basic tests for validation logic for add_features_from.
      
      * Remove various internal mapping items from dataset text dumps
      
      These are too sensitive to the exact feature order chosen, which is not visible to the user.
      Including them in tests appears unnecessary, as the data dumping code should provide enough coverage.
      
      * Add test that add_features_from results in identical data sets according to dump_text.
      
      * Add test that booster behaviour after using add_features_from matches that of training on the full data
      
      This checks:
      - That training after add_features_from works at all
      - That add_features_from does not cause training to misbehave
      
      * Expose feature_penalty and monotone_types/constraints via get_field
      
      These getters allow us to check that add_features_from does the right thing with these vectors.
      
      * Add tests that add_features correctly handles feature_penalty and monotone_constraints.
      
      * Ensure add_features_from properly frees the added dataset and add unit test for this
      
      Since add_features_from moves the feature group pointers from the added dataset to the dataset being added to, the added dataset is invalid after the call.
      We must ensure we do not try and access this handle.
      
      * Remove some obsolete TODOs
      
      * Tidy up DumpTextFile by using a single iterator for each feature
      
      This iterators were also passed around as raw pointers without being freed, which is now fixed.
      
      * Factor out offsetting logic in AddFeaturesFrom
      
      * Remove obsolete TODO
      
      * Remove another TODO
      
      This one is debatable, test code can be a bit messy and duplicate-heavy, factoring it out tends to end badly.
      Leaving this for now, will revisit if adding more tests later on becomes a mess.
      
      * Add documentation for newly-added methods.
      
      * Fix whitespace issues identified by pylint.
      
      * Fix a few more whitespace issues.
      
      * Fix doc comments
      
      * Implement deep copying for feature groups.
      
      * Replace awkward std::move usage by emplace_back, and reduce vector size to num_features rather than num_total_features.
      
      * Copy feature groups in addFeaturesFrom, rather than moving them.
      
      * Fix bugs in FeatureGroup copy constructor and ensure source dataset remains usable
      
      * Add reserve to PushVector and PushOffset
      
      * Move definition of Clone into class body
      
      * Fix PR review issues
      
      * Fix for loop increment style.
      
      * Fix test failure
      
      * Some more docstring fixes.
      
      * Remove blank line
      219c943d
  6. 02 Feb, 2019 1 commit
  7. 30 Jan, 2019 2 commits
  8. 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
  9. 20 Dec, 2018 2 commits
  10. 17 Dec, 2018 1 commit
    • Guolin Ke's avatar
      Fix bugs in RF (#1906) · cba82447
      Guolin Ke authored
      * fix RF's bugs
      
      * fix tests
      
      * rollback num_iterations
      
      * fix a bug and reduce memory costs
      
      * reduce memory cost
      cba82447
  11. 22 Oct, 2018 1 commit
  12. 11 Oct, 2018 1 commit
  13. 10 Oct, 2018 1 commit
  14. 09 Oct, 2018 1 commit
    • Guolin Ke's avatar
      average predictions for constant features (#1735) · c920e634
      Guolin Ke authored
      * average predictions for constant features
      
      * fix possible numerical issues in std::log.
      
      * fix pylint
      
      * fix bugs in c_api
      
      * fix styles
      
      * clean code for multi class
      
      * rewrite test
      
      * fix pylint
      
      * skip test_constant_features
      
      * refine test
      
      * fix tests
      
      * fix tests
      
      * update FAQ
      
      * fix test
      
      * Update FAQ.rst
      c920e634
  15. 03 Oct, 2018 1 commit
  16. 28 Sep, 2018 1 commit
  17. 22 Sep, 2018 1 commit
  18. 11 Sep, 2018 1 commit
  19. 10 Sep, 2018 1 commit
  20. 08 Sep, 2018 1 commit
  21. 27 Aug, 2018 1 commit
  22. 25 Aug, 2018 1 commit
    • Guolin Ke's avatar
      add support of refit-decay (#1603) · 2db6377a
      Guolin Ke authored
      * add support of refit-decay
      
      * add refit into c_api
      
      * add test
      
      * update document
      
      * Update basic.py
      
      * Update test_engine.py
      
      * Update basic.py
      
      * Update test_engine.py
      
      * fix comments
      
      * update test
      
      * fix the comments
      
      * Update test_engine.py
      2db6377a
  23. 25 Jul, 2018 1 commit
  24. 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
  25. 07 Jul, 2018 1 commit
  26. 20 Jun, 2018 1 commit
  27. 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
  28. 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
  29. 08 May, 2018 1 commit
    • Nikita Titov's avatar
      [ci][python] updated pep8 to pycodestyle (#1358) · 21487d8a
      Nikita Titov authored
      * updated pep8 to pycodestyle
      
      * fixed E722 do not use bare 'except'
      
      * fixed W605 invalid escape sequence '\*'
      
      * fixed W504 line break after binary operator
      
      * ignore W605 invalid escape sequence '\*' in nuget builder
      
      * made pycodestyle happy
      21487d8a
  30. 18 Apr, 2018 1 commit
  31. 27 Feb, 2018 1 commit
    • ebernhardson's avatar
      Experimental support for HDFS (#1243) · 7e186a57
      ebernhardson authored
      * 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
      7e186a57
  32. 24 Jan, 2018 1 commit
  33. 23 Dec, 2017 1 commit
  34. 26 Nov, 2017 1 commit
    • Guolin Ke's avatar
      Speed up saving and loading model (#1083) · 8a5ec366
      Guolin Ke authored
      * 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
      8a5ec366
  35. 09 Nov, 2017 1 commit
    • wxchan's avatar
      add init_score & test cpp and python result consistency (#1007) · bc0579c8
      wxchan authored
      * 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
      bc0579c8
  36. 24 Oct, 2017 1 commit
  37. 18 Oct, 2017 1 commit
    • Guolin Ke's avatar
      Use one-vs-other for small categorical features. · 087ec475
      Guolin Ke authored
      commit c9e123f24fcbb159c04e6694c7f830530bb2f27e
      Author: Guolin Ke <i@yumumu.me>
      Date:   Wed Oct 18 10:00:19 2017 +0800
      
          change default max_cat_to_onehot
      
      commit 805a5c3125b9979d634922e1708877fa0fec80c6
      Author: Guolin Ke <i@yumumu.me>
      Date:   Tue Oct 17 22:57:18 2017 +0800
      
          use one hot coding for the small cats
      087ec475
  38. 16 Oct, 2017 1 commit