Description Usage Arguments Value Author(s) Examples
This function simulates training and testing data sets according to a statistical model described by Hastie and Tibshirani in their book
1 | rhastib(n_train = 100, n_test = 100, n_subclass = 10, sigma2 = 0.1)
|
n_train |
an integer for the number of training samples. |
n_test |
an integer for the number of test samples. |
n_subclass |
an integer for the number of subclass in the Hastie and Tibishirani model. |
sigma2 |
a numeric for the within-group variance in the Hastie and Tibishirani model. |
a list with 4 attributes:
$train a matrix with n_train samples
$test a matrix with n_test samples
$class_train a vector of class labels for the train set
$class_test a vector of class labels for the test set
Olivier François
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.