필터 지우기
필터 지우기

Confusion matrix does not plot anything

조회 수: 3 (최근 30일)
Jon Camilleri
Jon Camilleri 2015년 11월 15일
댓글: Walter Roberson 2015년 11월 15일
I am trying to sort out a little algorithm, based on false positive and true positive for my school project, however in my little world, I am still slightly stuck.
addpath ('..')
load('iris-data.csv')
m = iris_data
I try this
plot(nmz(m)), and, this shows an empty graph.
I do not think I will be able to feel satisfied with an empty graph.

채택된 답변

Walter Roberson
Walter Roberson 2015년 11월 15일
MATLAB does not have a function named nmz() . It does have a function named nnz, number of non-zeros, but that just tells you how many of the values in the array were not equal to 0, which is going to be a scalar value that you are not going to want to plot.
If you have the Statistics Toolbox then you should use http://www.mathworks.com/help/stats/confusionmat.html
  댓글 수: 2
Jon Camilleri
Jon Camilleri 2015년 11월 15일
Do I have to create a function which reads the data in the elements, or is one already available?
Walter Roberson
Walter Roberson 2015년 11월 15일
You appear to have already read the data in using load()

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Bartlett에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by