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

조회 수: 2 (최근 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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by