grnn.predict {yager}R Documentation

Calculate predicted values of GRNN

Description

The function grnn.predict calculates a vector of GRNN predicted values based on an input matrix

Usage

grnn.predict(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

grnn.predone

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.predict(gnet, X[seq(5), ])

[Package yager version 0.1.1 Index]