Undefined function 'plotconfusion' for input arguments of type 'categorical'. ? WHHAATT ????
2 ビュー (過去 30 日間)
古いコメントを表示
Dear all,
I have no idea why the function plotconfusion does not work when the function confusionmat works perfectly well. Of couse with both the exact same inputs.
confusion = confusionmat(prediction(1:end-machine.fr-ceil(machine.ra_c/2)+2,1), machine.table.grade(machine.start+machine.fr+ceil(machine.ra_c/2)-2:end,1));
f=figure
plotconfusion(prediction(1:end-machine.fr-ceil(machine.ra_c/2)+2,1), machine.table.grade(machine.start+machine.fr+ceil(machine.ra_c/2)-2:end,1));
Thank you very much for you help.
Pierre
2 件のコメント
Geoff Hayes
2018 年 5 月 2 日
Pierre - if you look at the documentation for plotconfusion, what does it tell you about the inputs? So in the command line do,
doc plotconfusion
Can all inputs be of type categorical? I know that the online documentation from plotfconfusion indicates that this is the case, but the online docs correspond to the latest version of MATLAB...which may not be the version that you have.
回答 (1 件)
Steven Lord
2018 年 5 月 3 日
The online documentation is for the most recent release, which currently is release R2018a.
The ability to plot confusion labels for categorical labels using the plotconfusion function was introduced in release R2018a, according to the Release Notes.
I don't know exactly when the confusionmat function started supporting categorical arrays as inputs, but from reading the documentation it seems like that support started well before release R2017b.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Trigonometry についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!