我写了下面的命令来在Matlab中训练QDA分类器,但是它不起作用,而且给我一个错误。
代码如下所示:
SELECT
diagnosis_drug.drug_id,
diagnosis_drug.weight_bracket_id,
score,
localscore,
(score + localscore) AS score,
drug.*
FROM diagnosis_drug
INNER JOIN drug
ON diagnosis_drug.drug_id = drug.id
WHERE diagnosis_drug.doctor_id = 3
AND diagnosis_id IN (29, 212)
AND score > 0
AND weight_bracket_id = 1
AND diagnosis_drug._d = 0
ORDER BY score DESC
相关的错误是:
使用classreg.learning.impl.QuadraticDiscriminantImpl(行的错误 159)您不能将二次系数的线性系数设置为零 判别。
有人可以帮我解决这个问题吗?