Error in find Precision recall curve

1 Ansicht (letzte 30 Tage)
Ali Asghar
Ali Asghar am 23 Jun. 2021
Kommentiert: Ali Asghar am 24 Jun. 2021
Hello
I am following https://www.mathworks.com/help/stats/perfcurve.html#bunsogv-XCrit to find PR curve. On x axis i need recall value and on y axis i want precision value. as per the syntax it would be
'XCrit','tpr'
'YCrit','ppv'
but is shows error
['XCrit','tpr','YCrit','ppv'] = perfcurve(Y,diffscore1,'HandGrip');
Error: Assigning the function output to this expression is not supported.
Please help me

Akzeptierte Antwort

Sargondjani
Sargondjani am 23 Jun. 2021
Try without the quotations:
[XCrit,tpr,YCrit,ppv] = perfcurve(Y,diffscore1,'HandGrip');
In general quotations are used to specify strings (ie. names), which are not necessary for variable names.
  1 Kommentar
Ali Asghar
Ali Asghar am 24 Jun. 2021
Hey Sargondjani
Thanks alot. code run without error but its not giving the graph like PRC curve. I got below curve. Please tell me am i put right value in x and y axis? like x is tpr and y is ppv...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu ROC - AUC finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by