I had the following error message (Positive class is not found in the input data)
6 次查看(过去 30 天)
显示 更早的评论
I had the following error message (Positive class is not found in the input data). for the following code line
[~,~,~,AUCtest] = perfcurve(outputTest,Results(i).simOutput,true);
I searched for a solution for this error, then I found I have to change the term (true) into a scalar number from the target data.
the question is ... which scalar number should I choose from the target data to replace (true) term?
1 个评论
Adam Danz
2020-1-13
What version of Matlab are you using?
The 3rd input should accept a logical input. From that link (r2019b),
posclass — Positive class label
numeric scalar | logical scalar | character vector |
string scalar | cell containing a character vector |
categorical scalar
Also, make sure you don't have a variable named true by executing
which true
If this is the output, you're overriding the true function
true is a variable.
If this is the output, you're OK.
built-in (/MATLAB/toolbox/matlab/elmat/true)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!