perf: Perf

Description Usage Arguments Details Value See Also Examples

Description

Performance of a Probabilist neural network.

Usage

1
  perf(nn)

Arguments

nn

A trained and smoothed Probabilist neural network.

Details

The function perf uses a hold-out method. This method takes the training set used by the function learn and iterate over each observation trying to guess the current observation with a reduced training set (without the current observation).It generates:

Value

A probabilist neural network updated with its performance.

See Also

pnn-package, learn, smooth, guess, norms

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(pnn)
data(norms)
pnn <- learn(norms)
pnn <- smooth(pnn, sigma=0.8)
pnn <- perf(pnn)
pnn$observed
pnn$guessed
pnn$success
pnn$fails
pnn$success_rate
pnn$bic

chasset/pnn documentation built on May 13, 2019, 3:37 p.m.