Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

`L = loss(tree,tbl,ResponseVarName)`

`L = loss(tree,x,y)`

`L = loss(___,Name,Value)`

```
[L,se,NLeaf,bestlevel]
= loss(___)
```

returns
the mean squared error between the predictions of `L`

= loss(`tree`

,`tbl`

,`ResponseVarName`

)`tree`

to
the data in `tbl`

, compared to the true responses `tbl.ResponseVarName`

.

computes
the error in prediction with additional options specified by one or
more `L`

= loss(___,`Name,Value`

)`Name,Value`

pair arguments, using any of
the previous syntaxes.

Was this topic helpful?