Main Content

Loss for regression neural network

returns the regression loss for the trained regression neural network
`L`

= loss(`Mdl`

,`Tbl`

,`ResponseVarName`

)`Mdl`

using the predictor data in table `Tbl`

and
the response values in the `ResponseVarName`

table variable.

`L`

is returned as a scalar value that represents the mean squared
error (MSE) by default.

specifies options using one or more name-value arguments in addition to any of the input
argument combinations in previous syntaxes. For example, you can specify that columns in
the predictor data correspond to observations, specify the loss function, or supply
observation weights.`L`

= loss(___,`Name,Value`

)

`CompactRegressionNeuralNetwork`

| `fitrnet`

| `predict`

| `RegressionNeuralNetwork`