Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Usage

constructData(x, y)
getN(data)
getSubset(data, subset)
getX(data, subset = NULL)
shuffleData(data)
isClassification(data)
isRegression(data)

Arguments

x

The feature data as vector or matrix.

y

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.

Author(s)

Tammo Krueger <tammokrueger@googlemail.com>

Examples

nsine = noisySine(10)
isClassification(nsine)
isRegression(nsine)
getN(nsine)
getX(nsine)
nsineShuffeled = shuffleData(nsine)
getX(nsineShuffeled)
getSubset(nsineShuffeled, 1:3)

CVST

Fast Cross-Validation via Sequential Testing

v0.2-2
GPL (>= 2.0)
Authors
Tammo Krueger, Mikio Braun
Initial release
2018-05-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.