evaluate: Evaluate Model

Description Usage Arguments Value Examples

View source: R/nn-train.R

Description

Evaluates the performance of a model on a given dataset.

Usage

1
evaluate(inputs, target, model)

Arguments

inputs

set of inputs to the model

target

set of targets in one-hot encoded form

model

list of weights and biases

Value

accuracy of the model

Examples

1
2
3
4
## Not run: 
evaluate(train_data, train_target, mlp_model)

## End(Not run)

simpleMLP documentation built on March 28, 2021, 9:07 a.m.