Description Usage Arguments Value See Also Examples
The function pnn.predict
calculates a matrix of predicted probabilities based on a matrix of predictors
1 | pnn.predict(net, x)
|
net |
The PNN object generated by pnn.fit() |
x |
The matrix of input predictors |
A matrix of predicted probabilities for all categories
1 2 3 4 5 |
setosa versicolor virginica
[1,] 0.9801419 0.01882609 0.0010320113
[2,] 0.9296185 0.06755915 0.0028223580
[3,] 0.9700381 0.02879490 0.0011670227
[4,] 0.9573777 0.04096616 0.0016561408
[5,] 0.9869090 0.01242208 0.0006689094
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.