Learn R Programming

sisireg (version 1.1.2)

ssrmlp_predict: Prediction function for the ssrMLP

Description

Calculates the prediction for a given ssrMLP

Usage

ssrmlp_predict(X, W)

Value

Yp

array with predictions.

Arguments

X

matrix of coordinates.

W

the weight matrices from ssrmlp_train method.

Author

Dr. Lars Metzner

References

Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.

Examples

Run this code
# \donttest{
# 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)
# }

Run the code above in your browser using DataLab