plot_table = function(x,xlab='Predicted label',
ylab='True label',
normalize = F){
library(ggplot2)
if(!is.table(x)){
warning('input should be a table, not a ', class(x))
x = as.table(x)
}
if(!is.numeric(x)){
stop('input should be numeric, not ',mode(x),
call.
r混淆矩阵可视化
最新推荐文章于 2023-01-04 18:53:07 发布