Commits


Tsukasa OMOTO authored and GitHub committed c9bcba44c9f
[python] fix creating train_set in fit (#1916) * [python] fix creating train_set in fit https://github.com/Microsoft/LightGBM/blob/cc99f0d36ae929eb02b22a072823ab7c6d3155ab/python-package/lightgbm/sklearn.py#L519 may False even if valid_data[0] is X and valid_data[1] is y actually, because `check_X_y` might return copy of X and y. https://scikit-learn.org/0.20/modules/generated/sklearn.utils.check_X_y.html cf. https://github.com/Microsoft/LightGBM/pull/451 * use assertIn