Skip to content

Commit

Permalink
Update understandingXGBoostModel.Rmd
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed May 4, 2015
1 parent 2157146 commit a3ad9df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/kaggle-otto/understandingXGBoostModel.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ Look at the function documentation for more information.


```{r crossValidation}
numberOfClasses <- max(y)
numberOfClasses <- max(y) + 1
param <- list("objective" = "multi:softprob",
"eval_metric" = "mlogloss",
"num_class" = numberOfClasses + 1)
"num_class" = numberOfClasses)
cv.nround <- 50
cv.nround <- 5
cv.nfold <- 3
bst.cv = xgb.cv(param=param, data = trainMatrix, label = y,
Expand Down

0 comments on commit a3ad9df

Please sign in to comment.