Description Usage Arguments Value Examples
View source: R/xnnet_functions_v0.1.R
This function splits a dataset X and corresponding labels y into a training and test set
1 | train_test_split(X, y, training_fraction = 0.7, rnd_seed = 666)
|
X |
matrix with samples as rows and genes as features |
y |
binary label for each sample in X |
training_fraction |
fraction of data for training |
rnd_seed |
random seed for reproducible results |
A list containing (X_train, y_train, X_test, y_test)
.
1 2 | data("GSE37250") #load Tubercolosis dataset
GSE37250_split = train_test_split(GSE37250$X, GSE37250$y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.