Learn R Programming

darch (version 0.12.0)

darchTest: Test classification network.

Description

Forward-propagate given data through the deep neural network and return classification accuracy using the given labels.

Usage

darchTest(darch, newdata = NULL, targets = T)

Arguments

darch

'>DArch instance.

newdata

New data to use, NULL to use training data.

targets

Labels for the data, NULL to use training labels (only possible when data is NULL as well).

Value

Vector containing error function output, percentage of incorrect classifications and absolute number of incorrect classifications.

Details

This is primarily a convenience function similar to predict.DArch with classification performance measurements instead of network output, and it returns a list of accuracy indicators (raw network error, percentage of incorrect classifications and absolute number of incorrect classifications).

See Also

Other darch interface functions: darchBench, darch, plot.DArch, predict.DArch, print.DArch

Examples

Run this code
# NOT RUN {
data(iris)
model <- darch(Species ~ ., iris, retainData = T)
classificationStats <- darchTest(model)
# }

Run the code above in your browser using DataLab