How to import 'kfoldPredict' for old version matlab (2023a)
2 ビュー (過去 30 日間)
古いコメントを表示
Is there a possible way to import such function/ packages to matlab 2023?
I try save the class after open 'kfoldpredict' function, but it seems does not work.
Thank you for possible solutions.
0 件のコメント
回答 (2 件)
Ayush Modi
2024 年 7 月 28 日
Hi Evelyn,
"kfoldPredict" function was introduced in r2011a. You can use the function in r2023 as well.
However, "kfoldPredict" function is a part of "Statistics and Machine Learning Toolbox". So you would need the license to the r2023 version of the toolbox.
Refer to the following MathWorks documentation to learn more about the history of the function across various versions:
4 件のコメント
Steven Lord
2024 年 7 月 29 日
How exactly are you calling kfoldPredict? The specific input arguments with which you're calling it could determine which kfoldPredict method gets called (or whether MATLAB can call that method at all!)
Walter Roberson
2024 年 7 月 30 日
When you specify method 'Bag' for fitcensemble() then the output is a ClassificationBaggedEnsemble .
kfoldPredict() does not accept bagged ensembles. https://www.mathworks.com/help/stats/classreg.learning.partition.classificationpartitionedmodel.kfoldpredict.html#bsu1ryc-1_sep_mw_5cb12047-1d4f-4f41-8dfb-c81f28235bb5
2 件のコメント
Walter Roberson
2024 年 7 月 31 日
編集済み: Walter Roberson
2024 年 7 月 31 日
I am not certain, but it appears to be that when you use Bag that the output model is not a "cross-validated partitioned classifier", so I suspect that the answer is No (at least at present.)
参考
カテゴリ
Help Center および File Exchange で Classification Ensembles についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!