grnn.fit: Create a general regression neural network

Description Usage Arguments Value References Examples

View source: R/grnn.fit.R

Description

The function grnn.fit creates a general regression neural network (GRNN)

Usage

1
grnn.fit(x, y, sigma = 1, w = rep(1, length(y)))

Arguments

x

The matrix of predictors

y

The vector of response variable

sigma

The scalar of smoothing parameter

w

The vector of weights with default = 1 for each record

Value

A general regression neural network object

References

Donald Specht. (1991). A General Regression Neural Network.

Examples

1
2
3
4
data(iris, package = "datasets")
Y <- ifelse(iris[, 5] == "setosa", 1, 0)
X <- scale(iris[, 1:4])
gnet <- grnn.fit(x = X, y = Y)

Example output



yager documentation built on Oct. 26, 2020, 1:06 a.m.

Related to grnn.fit in yager...