-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Description
Doing "demo confusionchart":
octave:2> demo confusionchart
confusionchart example 1:
## Setting the chart properties
Yt = [8 5 6 8 5 3 1 6 4 2 5 3 1 4]';
Yp = [8 5 6 8 5 2 3 4 4 5 5 7 2 6]';
confusionchart (Yt, Yp, "Title", ...
"Demonstration with summaries","Normalization",...
"absolute","ColumnSummary", "column-normalized","RowSummary",...
"row-normalized")
ans =
ConfusionMatrixChart with properties:
NormalizedValues: [ 8x8 double ]
ClassLabels: { 8x1 cell }
Press <enter> to continue:
confusionchart example 2:
## Cellstr as inputs
Yt = {"Positive", "Positive", "Positive", "Negative", "Negative"};
Yp = {"Positive", "Positive", "Negative", "Negative", "Negative"};
m = confusionmat (Yt, Yp);
confusionchart (m, {"Positive", "Negative"});
Press <enter> to continue:
confusionchart example 3:
## Editing the object properties
Yt = {"Positive", "Positive", "Positive", "Negative", "Negative"};
Yp = {"Positive", "Positive", "Negative", "Negative", "Negative"};
cm = confusionchart (Yt, Yp);
cm.Title = "This is an example with a green diagonal";
cm.DiagonalColor = [0.4660, 0.6740, 0.1880];
Press <enter> to continue:
confusionchart example 4:
## Confusion chart in a uipanel
h = uipanel ();
Yt = {"Positive", "Positive", "Positive", "Negative", "Negative"};
Yp = {"Positive", "Positive", "Negative", "Negative", "Negative"};
cm = confusionchart (h, Yt, Yp);
Press <enter> to continue:
confusionchart example 5:
## Sorting classes
Yt = [8 5 6 8 5 3 1 6 4 2 5 3 1 4]';
Yp = [8 5 6 8 5 2 3 4 4 5 5 7 2 6]';
cm = confusionchart (Yt, Yp, "Title", ...
"Classes are sorted in ascending order");
cm = confusionchart (Yt, Yp, "Title", ...
"Classes are sorted according to clusters");
sortClasses (cm, "cluster");
octave:3> warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
octave:3> warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
warning: opengl_renderer: cdata does not match number of faces or number of vertices per face. Not rendering.
...Had to Ctrl-C and re-start octave. The last plot is corrupted. A small chance it is a problem with my computer (have not tried on a different machine yet).
Metadata
Metadata
Assignees
Labels
No labels