Products & Services Solutions Academia Support User Community Company


postreg

Purpose

Postprocess trained network response with linear regression

Syntax

Description

postreg postprocesses the network training set by performing a linear regression between each element of the network response and the corresponding target.

postreg(A,T) takes these inputs,

A
1 x Q array of network outputs (one element of the network output)
T
1 x Q array of targets (one element of the target vector)

and returns

M
Slope of the linear regression
B
Y intercept of the linear regression
R
Regression R-value (R = 1 means perfect correlation)

Examples

In this example you normalize a set of training data with mapstd, perform a principal component transformation on the normalized data, create and train a network using the pca data, simulate the network, unnormalize the output of the network using mapstd, and perform a linear regression between the network outputs (unnormalized) and the targets to check the quality of the network training.

Algorithm

Performs a linear regression between the network response and the target, and then computes the correlation coefficient (R-value) between the network response and the target.

See Also

mapminmax, mapstd, processpca


 Provide feedback about this page 

Previous page poslin processpca Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS