Back to Adaptive Vision Library website

You are here: Start » Function Reference » Multilayer Perceptron » MLP_Respond

MLP_Respond


Calculates multilayer perceptron answer.

Header:AVL.h

Syntax

C++
C#
 
void avl::MLP_Respond
(
	const avl::MlpModel& inMlpModel,
	const atl::Array<float>& inInputVector,
	atl::Array<float>& outResponseVector
)

Parameters

Name Type Default Description
inMlpModel const MlpModel& Trained MlpModel object
inInputVector const Array<float>& Input vector of features used to calculate classifier response
outResponseVector Array<float>& Calculated response

Description

The operation calculates response of multilayer perceptron classifier for the input data provided in inInputVector.

The parameter inInputVector size must be equal to trained MlpModel input count. Input count is set in MLP_Init.

The operation result outResponseVector is size of output count provided during MlpModel initializing operation.

Image: Visualization of MLP_Respond filter.

Errors

Error type Description
DomainError Incorrect or uninitialized MlpModel in MLP_Respond.

See Also

  • MLP_Init – Creates multilayer perceptron model.
  • MLP_Train – Creates and trains multilayer perceptron classifier.