grnn.predict {yager} | R Documentation |
The function grnn.predict
calculates a vector of GRNN predicted values based on an input matrix
grnn.predict(net, x)
net |
The GRNN object generated by grnn.fit() |
x |
The matrix of input predictors |
A vector of predicted values
data(iris, package = "datasets")
Y <- ifelse(iris[, 5] == "setosa", 1, 0)
X <- scale(iris[, 1:4])
gnet <- grnn.fit(x = X, y = Y)
grnn.predict(gnet, X[seq(5), ])