Learn R Programming

yap (version 0.1.1)

pnn.fit: Create a probabilistic neural network

Description

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

Usage

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

Run this code
# NOT RUN {
data(iris, package = "datasets")
Y <- iris[, 5]
X <- scale(iris[, 1:4])
pnet <- pnn.fit(x = X, y = Y)
# }

Run the code above in your browser using DataLab