grnn.parpred {yager} | R Documentation |
Calculate predicted values of GRNN by using parallelism
Description
The function grnn.parpred
calculates a vector of GRNN predicted values based on an input matrix
Usage
grnn.parpred(net, x)
Arguments
net |
The GRNN object generated by grnn.fit() |
x |
The matrix of input predictors |
Value
A vector of predicted values
See Also
Examples
data(iris, package = "datasets")
Y <- ifelse(iris[, 5] == "setosa", 1, 0)
X <- scale(iris[, 1:4])
gnet <- grnn.fit(x = X, y = Y)
grnn.parpred(gnet, X[seq(5), ])
[Package yager version 0.1.1 Index]