Confusion Matrix Multiclass using R
| require(ggplot2) | |
| input <- read.delim("conf_matrix.csv", header=TRUE, sep=",") |
| input.matrix <- data.matrix(input) |
| input.matrix.normalized <- normalize(input.matrix) |
| colnames(input.matrix.normalized) = c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N") |
| rownames(input.matrix.normalized) = colnames(input.matrix.normalized) |
| confusion <- as.data.frame(as.table(input.matrix.normalized)) |
| plot <- ggplot(confusion) |

1,0,0
답글삭제0,3,0
1,0,2