ssrmlp_predict | R Documentation |
Calculates the prediction for a given ssrMLP
ssrmlp_predict(X, W)
X |
matrix of coordinates. |
W |
the weight matrices from ssrmlp_train method. |
Yp |
array with predictions. |
Dr. Lars Metzner
Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.
# generate data
set.seed(42)
x <- rnorm(300)
y <- rnorm(300)
z <- rnorm(300) + atan2(x, y)
# coordinates
X <- matrix(cbind(x,y), ncol = 2)
Y <- as.double(z)
# Training
W <- ssrmlp_train(X, Y)
Yp <- ssrmlp_predict(X, W)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.