How do I partition data sets for cross validation in MATLAB?

4 ビュー (過去 30 日間)
Aaron Woods
Aaron Woods 2021 年 9 月 13 日
回答済み: Swetha Polemoni 2021 年 9 月 16 日
I'm trying to split, or partition, the data into two groups. Testing Data and Training Data. Ideally I want to write a function that can randomly divide the data into a variable sized patition. So that I could do specifi and leave one out cross validation. I'm not sure how I'll do this though.

採用された回答

Swetha Polemoni
Swetha Polemoni 2021 年 9 月 16 日
Hi
It is my understanding that you want to partition the dats randomly. You can use either cvpartition from Statistics and Machine Learning Toolbox or randperm to serve the purpose.
The following answer might help you to understand how to use 'randperm'

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by