フィルターのクリア

Error in finding precision recall curve

1 回表示 (過去 30 日間)
Ali Asghar
Ali Asghar 2021 年 6 月 29 日
コメント済み: Ali Asghar 2021 年 7 月 9 日
Hello
I need to find precision recall curve. I am following https://www.mathworks.com/help/stats/perfcurve.html#bunsogv-XCrit to do so.
I change the x and y output type by using Xcrit and Ycrit as mentioned in link. I got same XCrit values after changing its type. Similarly with YCrit.
I run
[XCrit1,tpr,YCrit1,ppv] = perfcurve(Y,diffscore1,'HandGrip');
[XCrit2,ppv,YCrit2,tpr] = perfcurve(Y,diffscore1,'HandGrip'); % code run but
[XCrit3,tp,YCrit3,tp] = perfcurve(Y,diffscore1,'HandGrip'); % code run but
[XCrit4,ecost,YCrit4,ecost] = perfcurve(Y,diffscore1,'HandGrip');
value of XCrit1,2,3,4 are same and YCrit1,2,3,4 are same.
Please tell my mistakes.
Thanks

採用された回答

Walter Roberson
Walter Roberson 2021 年 7 月 8 日
Changing the names of the output variables does not have any effect. You need to change options passed in. Also, your output variable names suggested that you do not understand the output variables.
[XCrit1, YCrit1] = perfcurve(Y, diffscore1, 'HandGrip', 'XCrit', 'ppv');
[XCrit2, YCrit2] = perfcurve(Y, diffscore1, 'HandGrip', 'XCrit', 'tpr');
[XCrit3, YCrit3] = perfcurve(Y, diffscore1, 'HandGrip', 'XCrit', 'tp');
[XCrit4, YCrit4] = perfcurve(Y, diffscore1, 'HandGrip', 'XCrit', 'ecost');
  1 件のコメント
Ali Asghar
Ali Asghar 2021 年 7 月 9 日
Walter Roberson
Thank you very much for reply.
I want to find tpr on XCrit and ppv on YCrit so is the below code correct?
[XCrit1, YCrit1, T, AUC11] = perfcurve(Y, diffscore1, 'HandGrip', 'XCrit', 'tpr', 'YCrit', 'ppv');

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by