E = cvloss(tree)
[E,SE] =
cvloss(tree)
[E,SE,Nleaf]
= cvloss(tree)
[E,SE,Nleaf,BestLevel]
= cvloss(tree)
[E,...] = cvloss(tree,Name,Value)
returns
the crossvalidated regression error (loss) for E
= cvloss(tree
)tree
,
a regression tree.
[
returns the standard
error of E
,SE
] =
cvloss(tree
)E
.
[
returns the number
of leaves (terminal nodes) in E
,SE
,Nleaf
]
= cvloss(tree
)tree
.
[
returns the optimal
pruning level for E
,SE
,Nleaf
,BestLevel
]
= cvloss(tree
)tree
.
[
cross
validates with additional options specified by one or more E
,...] = cvloss(tree
,Name,Value
)Name,Value
pair
arguments. You can specify several namevalue pair arguments in any
order as Name1,Value1,…,NameN,ValueN
.

A regression tree produced by 
Specify optional commaseparated pairs of Name,Value
arguments.
Name
is the argument
name and Value
is the corresponding
value. Name
must appear
inside single quotes (' '
).
You can specify several name and value pair
arguments in any order as Name1,Value1,...,NameN,ValueN
.

A vector of nonnegative integers in ascending order or If you specify a vector, then all elements must be at least If you specify
To invoke Default: 

One of the following strings:
Default: 

Number of crossvalidation samples, a positive integer. Default: 

The crossvalidation mean squared error (loss). A vector or
scalar depending on the setting of the 

The standard error of 

Number of leaf nodes in 

By default, a scalar representing the largest pruning level
that achieves a value of 