フィルターのクリア

ClassificationLearner Cross Validation without shuffling

9 ビュー (過去 30 日間)
Ian Donovan
Ian Donovan 2022 年 3 月 30 日
回答済み: Drew 2022 年 12 月 23 日
I'm working with time series data with multible reps of stimulus. My research shows that shuffling data between reps unintentionally and virually beifets the accuricies of my modles, and not uniformly between types of modles. Is there anyway to have the ClassificationLearner not randomly shuffling my data? I need it trained on reps 1 and 2, tested on 3, not trained of bits of all the reps and tested on windows temperorly adjacent to my training data.

回答 (1 件)

Drew
Drew 2022 年 12 月 23 日
You can have Classification Learner train on reps 1 and 2 and test on rep 3 by first separating the data at the commandline. The steps are:
(1) Create one workspace variable with the data for reps 1 and 2, and another workspace variable with rep 3.
(2) Start Classification Learner and load the workspace variable for reps 1 and 2 as the training data.
(3) Build models
(4) Load the workspace variable for rep 3 as a test set.
(5) Test models on rep 3

カテゴリ

Help Center および File ExchangeClassification についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by