View source: R/nbc4va_wrapper.R
topCOD.nbc | R Documentation |
Obtains the top causes of deaths for each testing case from a result nbc
object.
topCOD.nbc(object)
object |
The result |
out A dataframe of the top CODs:
Columns: ID, COD
ID (vectorof char): The ids for each testing case
COD (vectorof char): The top prediction for each testing case
Other wrapper functions:
csmf.nbc()
library(nbc4va) data(nbc4vaData) # Run naive bayes classifier on random train and test data train <- nbc4vaData[1:50, ] test <- nbc4vaData[51:100, ] results <- nbc(train, test) # Obtain the top cause of death predictions for the test data topPreds <- topCOD.nbc(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.