I keep getting error using plot not enough input arguments.
Mostra commenti meno recenti
I keep getting error when I try to plot the following code and I don't really know what to do.
figure
plot(recall,precision)
xlabel("Recall")
ylabel("Precision")
grid on
title(sprintf("Average Precision = %.2f",ap))
Error using plot
Not enough input arguments.
3 Commenti
Torsten
il 4 Mag 2023
And how are the arrays for recall and prescision defined in your code ?
At the moment, both plot components are empty - thus nothing to plot.
Adrian Kleffler
il 4 Mag 2023
Adrian Kleffler
il 4 Mag 2023
Risposte (1)
Dyuman Joshi
il 4 Mag 2023
You need to sort your x data.
recallv = cell2mat(recall);
precisionv = cell2mat(precision);
[r,index] = sort(recallv);
p = precisionv(index);
figure
plot(r,p)
xlabel("Recall")
ylabel("Precision")
grid on
title(sprintf("Average Precision = %.2f",ap))
6 Commenti
Adrian Kleffler
il 4 Mag 2023
Modificato: Adrian Kleffler
il 4 Mag 2023
Dyuman Joshi
il 4 Mag 2023
Could you please attach your data?
Adrian Kleffler
il 4 Mag 2023
Dyuman Joshi
il 4 Mag 2023
The arrays - recall and precision.
Also, could you elaborate on this statement?
"it looks like there is average precision for all the classes in one graph ... how to improve it ? "
Adrian Kleffler
il 4 Mag 2023
Adrian Kleffler
il 4 Mag 2023
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


