数据集:Iris如何计算LDA(线性判别分析)模型数据集的混淆矩阵?
>iris.lda = lda(Species ~ . , data = iris)
>table(predict(iris.lda, type="class"), iris$Species)
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
Run Code Online (Sandbox Code Playgroud)