Learn R Programming

CVST (version 0.2-3)

noisySine: Regression and Classification Toy Data Set

Description

Regression and Classification Toy Data Set based on the sine and sinc function.

Usage

noisySine(n, dim = 5, sigma = 0.25)
noisySinc(n, dim = 2, sigma = 0.1)

Arguments

n

Number of data points that should be generated.

dim

Intrinsic dimensionality of the data set (see references for details).

sigma

Standard deviation of the noise component.

Value

Returns a data set of type CVST.data

References

Tammo Krueger, Danny Panknin, and Mikio Braun. Fast cross-validation via sequential testing. Journal of Machine Learning Research 16 (2015) 1103-1155. URL https://jmlr.org/papers/volume16/krueger15a/krueger15a.pdf.

See Also

constructData

Examples

Run this code
# NOT RUN {
nsine = noisySine(1000)
plot(nsine, col=nsine$y)
nsinc = noisySinc(1000)
plot(nsinc)
# }

Run the code above in your browser using DataLab