guess | R Documentation |
Infers the category of a new observation.
guess(nn, X)
nn |
A trained and smoothed Probabilistic neural network. |
X |
A vector describing a new observation. |
Given an already trained and smoothed Probabilistic
neural network, the function guess
gives the
category with the highest probability, and the
probabilities of each category.
A list
of the guessed category and the
probabilities of each category.
pnn-package
, learn
,
smooth
, perf
,
norms
library(pnn) data(norms) pnn <- learn(norms) pnn <- smooth(pnn, sigma=0.8) guess(pnn, c(1,1)) guess(pnn, c(1,1))$category guess(pnn, c(1,1))$probabilities guess(pnn, c(2,1)) guess(pnn, c(1.5,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.