Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to create confusion matrix for xgboost in R

$
0
0

@hackers wrote:

Hello,

I am using the below code for xgboost:

bst.cv <- xgb.cv(param=param, data=data.matrix(X[,-1]), label=y, 
                        nfold=10, nrounds=nround.cv, prediction=TRUE, verbose=FALSE)

I came across the below piece of code somewhere to calculate cf:

But when I try apply this I get an error:

Can someone please help me on how to resolve this??

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles