Xgboost: Vorhersage nach Kreuzvalidierung mit xgboost [Frage]

Erstellt am 1. Nov. 2014  ·  3Kommentare  ·  Quelle: dmlc/xgboost

This is my first trial with xgboost (very fast!). Dies ist mein erster Versuch mit xgboost (sehr schnell!). But I'm a little bit confused . Aber ich bin etwas verwirrt.
In fact, I trained a model using xgb.cv as follows: Tatsächlich habe ich ein Modell mit xgb.cv wie folgt trainiert:
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) Jetzt möchte ich mit meinem Testset vorhersagen, aber xgbmodel scheint ein logischer Wert zu sein (TRUE in diesem Fall)
How could I predict after cv? Wie könnte ich nach dem Lebenslauf vorhersagen? Should I use xgb.train then? Sollte ich dann xgb.train verwenden?
HR HR

en

Hilfreichster Kommentar

Yes, the xgb.cv does not return the model, but the cv history of the process. Ja, die xgb.cv gibt nicht das Modell zurück, sondern die CV-Historie des Prozesses. Since in cv we are training n models to evaluate the result. Da wir in cv n Modelle trainieren, um das Ergebnis auszuwerten.

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 Ein normaler Anwendungsfall von cv ist die Auswahl von Parametern, also verwenden Sie normalerweise cv, um einen guten Parameter zu finden, und verwenden xgb.train, um das Modell auf dem gesamten Datensatz zu trainieren

en

Alle 3 Kommentare

Yes, the xgb.cv does not return the model, but the cv history of the process. Ja, die xgb.cv gibt nicht das Modell zurück, sondern die CV-Historie des Prozesses. Since in cv we are training n models to evaluate the result. Da wir in cv n Modelle trainieren, um das Ergebnis auszuwerten.

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 Ein normaler Anwendungsfall von cv ist die Auswahl von Parametern, also verwenden Sie normalerweise cv, um einen guten Parameter zu finden, und verwenden xgb.train, um das Modell auf dem gesamten Datensatz zu trainieren

en

Ok, jetzt ist es klarer

en

Hi, Hi,

There is a parameter prediction=TRUE in xgb.cv, which returns the prediction of cv folds. In xgb.cv gibt es einen Parameter preview=TRUE, der die Vorhersage von cv-Folds zurückgibt. But it is not clear from the document that for which nround, the predictions are returned? Aus dem Dokument geht jedoch nicht hervor, für welche Runde die Vorhersagen zurückgegeben werden?

en
War diese Seite hilfreich?
0 / 5 - 0 Bewertungen

Verwandte Themen

lizsz picture lizsz  ·  3Kommentare

hx364 picture hx364  ·  3Kommentare

XiaoxiaoWang87 picture XiaoxiaoWang87  ·  3Kommentare

frankzhangrui picture frankzhangrui  ·  3Kommentare

FabHan picture FabHan  ·  4Kommentare