Time series cross-validation for lasso

3 ビュー (過去 30 日間)
Nikolaos Vasilas
Nikolaos Vasilas 2021 年 3 月 17 日
編集済み: Swetha Polemoni 2021 年 3 月 31 日
I am trying to estimate a lasso model using time series data and I would like to use cross-validation to select the lamda parameter. However, K-flod validation randomly shuffles the data and therefore it is not optimal in a time-series context; something like forward chaining would be more appropriate. I have no clue how to do this in matlab as the lasso or the cvpartition functions do not offer such option.

回答 (1 件)

Swetha Polemoni
Swetha Polemoni 2021 年 3 月 31 日
編集済み: Swetha Polemoni 2021 年 3 月 31 日
Hi Nikolaos Vasilas
K-fold validation without random shuffling of data/ time series cross-validation is not supported by Matlab This requirement has been brought to the notice of developers. It might be considered in future release.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by