Skip to content

"demo confusionchart" is failing #178

@dasergatskov

Description

@dasergatskov

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions