powered by
Generate a P-dimensional test data set based on a sigmoid function.
P
generate_test_data(n, P, split = 0.8)
Numer of samples
Spatial dimension
A value between 0 and 1 for the train / test split.
0
1
A list of the covarite matrices for the train and test data X_train and X_test and of the variable of interest y_train and y_test.
X_train
X_test
y_train
y_test
# NOT RUN { generate_test_data(100, 2) # }
Run the code above in your browser using DataLab