powered by
The function pnn.fit creates a probabilistic neural network (PNN)
pnn.fit
pnn.fit(x, y, sigma = 1)
A matrix of predictors
A vector of N-category factors
A scalar with the positive value
A PNN object
Donald Specht. (1990). Probabilistic Neural Networks.
# 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