(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 Compatibility Considerations.
[
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.
confusion
| plotregression
| fitlm
(Statistics and Machine Learning Toolbox)