constructData: Construction and Handling of CVST.data Objects
Description
The CVST methods needs a structured interface to both regression and
classification data sets. These helper methods allow the construction
and consistence handling of these types of data sets.
The observed values (regressands/labels) as list, vector or factor.
data
A CVST.data object generated via constructData.
subset
A index set.
Value
constructData returns a CVST.data object. getN
returns the number of data points in the data set. getSubset
returns a subset of the data as a CVST.data object, while
getX just return the feature data. shuffleData returns a
randomly shuffled instance of the data.