test
Description
returns the
test indices idx
= test(c
)idx
for a tspartition
object
c
. That is, the logical vector idx
specifies the
observations in the test set. In this syntax, c
is an object of type
'holdout'
.
returns the test indices for window idx
= test(c
,i
)i
of a tspartition
object
c
of type 'expanding-window'
or
'sliding-window'
. That is, the logical vector idx
specifies the observations in test set i
.
If
c.Type
is'expanding-window'
, then the training set size expands with each window while the test set size remains fixed.If
c.Type
is'sliding-window'
, then both the training set size and the test set size are fixed.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022b