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
Adam Danz 2020-1-13
What version of Matlab are you using?
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 CenterFile 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!

Translated by