ssrmlp_predict {sisireg} | R Documentation |
Prediction function for the ssrMLP
Description
Calculates the prediction for a given ssrMLP
Usage
ssrmlp_predict(X, W)
Arguments
X |
matrix of coordinates. |
W |
the weight matrices from ssrmlp_train method. |
Value
Yp |
array with predictions. |
Author(s)
Dr. Lars Metzner
References
Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.
Examples
# 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)
[Package sisireg version 1.1.1 Index]