Learn R Programming

yap (version 0.1.1)

pnn.parpred: Calculate predicted probabilities of PNN by using parallelism

Description

The function pnn.parpred calculates a matrix of PNN predicted probabilities based on an input matrix

Usage

pnn.parpred(net, x)

Arguments

net

A PNN object generated by pnn.fit()

x

A matrix of input predictors

Value

A matrix of predicted probabilities

See Also

pnn.predict

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)
pnn.parpred(pnet, X[seq(5), ])
# }

Run the code above in your browser using DataLab