Main Content
regression
(Not recommended) Perform linear regression of shallow network outputs on targets
regression
is not recommended. Use fitlm
(Statistics and Machine Learning Toolbox)
instead. For more information, see Version History.
Description
[
calculates the linear regression between each element of the network response and the
corresponding target. r
,m
,b
] = regression(t
,y
)
This function takes cell array or matrix target t and output y, each with total matrix rows of N, and returns the regression values, r, the slopes of regression fit, m, and the y-intercepts, b, for each of the N matrix rows.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2010bSee Also
plotregression
| confusion
| fitlm
(Statistics and Machine Learning Toolbox)