pnn.fit: Create a probabilistic neural network

Description Usage Arguments Value References Examples

View source: R/pnn.fit.R

Description

The function pnn.fit creates a probabilistic neural network (PNN)

Usage

1
pnn.fit(x, y, sigma = 1)

Arguments

x

A matrix of predictors

y

A vector of N-category factors

sigma

A scalar with the positive value

Value

A PNN object

References

Donald Specht. (1990). Probabilistic Neural Networks.

Examples

1
2
3
4
data(iris, package = "datasets")
Y <- iris[, 5]
X <- scale(iris[, 1:4])
pnet <- pnn.fit(x = X, y = Y)

Example output



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

Related to pnn.fit in yap...