image_output_1.png
import lightgbm

import lightgbm
lgbreg = lightgbm.LGBMRegressor(boosting_type='gbdt', num_leaves=31, learning_rate=0.1, n_estimators=100)
lgbreg.fit(X_train, Y_train)
print('train score', lgbreg.score(X_train, Y_train))
print('test score', lgbreg.score(X_test, Y_test))