Xgboost: xgboostを使用した交差検定後の予測[質問]

作成日 2014年11月01日  ·  3コメント  ·  ソース: dmlc/xgboost

This is my first trial with xgboost (very fast!).これはxgboostを使った私の最初の試行です(非常に速いです!)。 But I'm a little bit confused .しかし、私は少し混乱しています。
In fact, I trained a model using xgb.cv as follows:実際、私はxgb.cvを使用してモデルを次のようにトレーニングしました。
xgbmodel=xgb.cv(params=param, data=trainingdata, nrounds=100, nfold=5,showsd=T,metrics='logloss') xgbmodel = xgb.cv(params = param、data = trainingdata、nrounds = 100、nfold = 5、showsd = T、metrics ='logloss')
Now I want to predict with my test set but xgbmodel seems to be a logical value (TRUE in this case)テストセットで予測したいのですが、xgbmodelは論理値のようです(この場合はTRUE)
How could I predict after cv?履歴書の後でどのように予測できますか? Should I use xgb.train then?その場合、xgb.trainを使用する必要がありますか?
HR HR

en

最も参考になるコメント

Yes, the xgb.cv does not return the model, but the cv history of the process.はい、xgb.cvはモデルを返しませんが、プロセスのcv履歴を返します。 Since in cv we are training n models to evaluate the result. cvでは、結果を評価するためにn個のモデルをトレーニングしているためです。

A normal use case of cv is to select parameters, so usually you use cv to find a good parameter, and use xgb.train to train the model on the entire dataset cvの通常の使用例はパラメーターを選択することです。したがって、通常はcvを使用して適切なパラメーターを見つけ、xgb.trainを使用してデータセット全体でモデルをトレーニングします。

en

全てのコメント3件

Yes, the xgb.cv does not return the model, but the cv history of the process.はい、xgb.cvはモデルを返しませんが、プロセスのcv履歴を返します。 Since in cv we are training n models to evaluate the result. cvでは、結果を評価するためにn個のモデルをトレーニングしているためです。

A normal use case of cv is to select parameters, so usually you use cv to find a good parameter, and use xgb.train to train the model on the entire dataset cvの通常の使用例はパラメーターを選択することです。したがって、通常はcvを使用して適切なパラメーターを見つけ、xgb.trainを使用してデータセット全体でモデルをトレーニングします。

en

わかりました、今はもっとはっきりしています

en

Hi,やあ、

There is a parameter prediction=TRUE in xgb.cv, which returns the prediction of cv folds. xgb.cvにはパラメータprediction=TRUEがあり、cvフォールドの予測を返します。 But it is not clear from the document that for which nround, the predictions are returned?しかし、どのラウンドで予測が返されるのかは、ドキュメントからは明らかではありませんか?

en
このページは役に立ちましたか?
0 / 5 - 0 評価