※当方、機械学習によるモデル構築に取り組んではいますが、プログラミングや統計に関しては
初心者レベルですので、初歩から教えていただければ幸甚です。
jupyter notebook上で、勾配ブースティングによる予測モデルの構築を行っていまして、
モデル精度検証にあたって検証用データを投入した際、以下のようなエラーコードが出ます。
「NotFittedError: This GradientBoostingClassifier instance is not fitted yet. Call 'fit' with appropriate arguments before using this method.」
♯利用したアルゴリズム:勾配ブースティング
♯パラメータチューニング:GridSearchCV
GradientBoostingClassifierに関しては、以下の通り学習を行っています。
「from sklearn.ensemble import GradientBoostingClassifier
from sklearn.model_selection import GridSearchCV
GBC = GradientBoostingClassifier()
param_grid = {'n_estimators':[10,50,100,300],
'max_depth':[3,5,10]}
grid_search = GridSearchCV(GBC, param_grid)
grid_search.fit(train_x, train_y)」
上記エラーについて、考えうる原因について教えていただけると幸いです。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。