Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain about confusion matrix in r?



Explain about confusion matrix in r?..

Answer / Suman Pal

"A confusion matrix is a table used to describe the performance of a classification model. It summarizes the number of true positives (TP), false positives (FP), true negatives (TN), and false negatives (FN) for a binary classification problem.nnIn R, you can use the caret package to calculate a confusion matrix:n```Rnlibrary(caret)nn# Train a classification modelnmodel <- train(y ~ ., data = training_data, method = 'naive_bayes')nn# Predict on new datanpredictions <- predict(model, newdata = testing_data)nn# Calculate the confusion matrixnconfusionMatrix(predict(model, newdata = testing_data), testing_data$y)n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

Name some functions available in “dplyr” package.

1 Answers  


What do you understand by a workspace in r programming language?

1 Answers  


What are fundamental principles of debugging?

1 Answers  


What is t-tests() in R?

1 Answers  


What is the use of abline() function?

1 Answers  


What is a graphic device?

1 Answers  


What is meant by ANOVA models in R?

1 Answers  


What do you understand by scientific data visualization in R?

1 Answers  


How do you build and evaluate a random forest in r?

1 Answers  


How to create axes in the graph?

1 Answers  


What is function in r?

1 Answers  


What is a dataframe in r?

1 Answers  


Categories