How to debugg below error, Below we have attached file.

3 ビュー (過去 30 日間)
Basavaraja V
Basavaraja V 2018 年 4 月 20 日
コメント済み: Jan 2018 年 4 月 20 日
Error using crossval>evalFun (line 480) The function '@(xtr,ytr,xte,yte)confusionmat(yte,classify(xte,xtr,ytr),'order',order)' generated the following error: The pooled covariance matrix of TRAINING must be positive definite.
Error in crossval>getFuncVal (line 497) funResult = evalFun(funorStr,arg(:));
Error in crossval (line 343) funResult = getFuncVal(1, nData, cvp, data, funorStr, []);
Error in group_Partition (line 16) cfMat = crossval(f,X,y,'partition',cp);
  1 件のコメント
Jan
Jan 2018 年 4 月 20 日

The error message is:

 The pooled covariance matrix of TRAINING must be positive definite.

The posted code does not allow to check, why your data does not have such properties.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification Trees についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by