text_plain_output_1.png
from sklearn.ensemble import GradientBoostingClassifier

from sklearn.ensemble import GradientBoostingClassifier
clf = GradientBoostingClassifier()
clf.fit(X_train, y_train)
print('学習スコア', clf.score(X_train, y_train))
print('テストスコア', clf.score(X_val, y_val))