필터 지우기
필터 지우기

How to get crossval on Classification Linear?

조회 수: 2 (최근 30일)
Yean Lim
Yean Lim 2020년 12월 8일
댓글: Karan Nandankar 2021년 1월 4일
Hi, there are crossval methods available for ClassificationTree & ClassificationEnsemble
I have a ClassificationLinear created from fitclinear with hyperparameter optimization.
How do use crossval function on ClassificationLinear?
  댓글 수: 1
Karan Nandankar
Karan Nandankar 2021년 1월 4일
Hi,
Can you try using the following line of code in your workflow,
CVMdl = fitclinear(X,Y,'CrossVal','on');
% KFold Loss
error = kfoldLoss(CVMdl)
Refer to this documentation for more information.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Gaussian Process Regression에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by