summarize_states | R Documentation |
Create summary data frame for confidence predictions over 1 or several state files or a data frame. Columns in file or data frame should be confidence predictions for one class, i.e. each rows should sum to 1 and have nonnegative entries. Output data frame contains average confidence scores, max score and percentage of votes for each class.
summarize_states(
states_path = NULL,
label_names = NULL,
file_type = "h5",
df = NULL
)
states_path |
Folder containing state files or a single file with same ending as |
label_names |
Names of predicted classes. |
file_type |
|
df |
A states data frame. Ignore |
A data frame of predictions summaries.
m <- c(0.9, 0.1, 0.2, 0.01,
0.05, 0.7, 0.2, 0,
0.05, 0.2, 0.6, 0.99) %>% matrix(ncol = 3)
label_names <- paste0("class_", 1:3)
df <- as.data.frame(m)
pred_summary <- summarize_states(label_names = label_names, df = df)
pred_summary
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.