フィルターのクリア

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 Center および File ExchangeGaussian Process Regression についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by