5
Tập dữ liệu: Iris Làm cách nào để tính toán ma trận nhầm lẫn trên tập dữ liệu cho mô hình LDA (Phân tích đối xử phân biệt tuyến tính)?Làm thế nào để tính ma trận nhầm lẫn trên tập dữ liệu Iris?
>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?