regression ensemble grown by resampling -凯发k8网页登录
package: classreg.learning.regr
superclasses:
regression ensemble grown by resampling
description
regressionbaggedensemble
combines a set of trained
weak learner models and data on which these learners were trained. it can predict
ensemble response for new data by aggregating predictions from its weak learners.
construction
create a bagged regression ensemble object using . set the name-value pair argument
'method'
of fitrensemble
to
'bag'
to use bootstrap aggregation (bagging, for example, random
forest).
properties
|
bin edges for numeric predictors, specified as a cell array of p numeric vectors, where p is the number of predictors. each vector includes the bin edges for a numeric predictor. the element in the cell array for a categorical predictor is empty because the software does not bin categorical predictors. the software bins numeric predictors only if you specify the you can reproduce the binned predictor data x = mdl.x; % predictor data xbinned = zeros(size(x)); edges = mdl.binedges; % find indices of binned predictors. idxnumeric = find(~cellfun(@isempty,edges)); if iscolumn(idxnumeric) idxnumeric = idxnumeric'; end for j = idxnumeric x = x(:,j); % convert x to array if x is a table. if istable(x) x = table2array(x); end % group x into bins by using the function. xbinned = discretize(x,[-inf; edges{j}; inf]); xbinned(:,j) = xbinned; end xbinned
contains the bin indices, ranging from 1 to the number of bins, for numeric predictors.
xbinned values are 0 for categorical predictors. if
x contains nan s, then the corresponding
xbinned values are nan s.
|
|
categorical predictor
indices, specified as a vector of positive integers. |
|
a character vector describing how the ensemble combines learner predictions. |
|
expanded predictor names, stored as a cell array of character vectors. if the model uses encoding for categorical variables, then
|
|
a numeric array of fit information. the
|
|
character vector describing the meaning of the |
|
a numeric scalar between |
|
description of the cross-validation optimization of hyperparameters,
stored as a
|
|
cell array of character vectors with names of the weak learners in the
ensemble. the name of each learner appears just once. for example, if you
have an ensemble of 100 trees, |
|
a character vector with the name of the algorithm used for training the ensemble. |
|
parameters used in training |
|
numeric scalar containing the number of observations in the training data. |
|
number of trained learners in the ensemble, a positive scalar. |
|
a cell array of names for the predictor variables, in the order in which
they appear in |
|
a character vector describing the reason stopped adding weak learners to the ensemble. |
|
a structure containing the result of the method. use
|
|
boolean flag indicating if training data for weak learners in this
ensemble were sampled with replacement. |
|
a character vector with the name of the response variable
|
|
function handle for transforming scores, or character vector representing
a built-in transformation function. add or change a ens.responsetransform = @function |
|
the trained learners, a cell array of compact regression models. |
|
a numeric vector of weights the ensemble assigns to its learners. the ensemble computes predicted response by aggregating weighted predictions from its learners. |
|
a logical matrix of size
|
|
the scaled |
|
the matrix or table of predictor values that trained the ensemble. each
column of |
|
the numeric column vector with the same number of rows as
|
object functions
create compact regression ensemble | |
cross validate ensemble | |
cross-validate shrinking (pruning) ensemble | |
gather properties of statistics and machine learning toolbox object from gpu | |
lime | local interpretable model-agnostic explanations (lime) |
regression error | |
out-of-bag regression error | |
oobpermutedpredictorimportance | predictor importance estimates by permutation of out-of-bag predictor observations for random forest of regression trees |
predict out-of-bag response of ensemble | |
partialdependence | compute partial dependence |
plotpartialdependence | create partial dependence plot (pdp) and individual conditional expectation (ice) plots |
predict responses using ensemble of regression models | |
estimates of predictor importance for regression ensemble | |
find weights to minimize resubstitution error plus penalty term | |
remove members of compact regression ensemble | |
regression error by resubstitution | |
predict response of ensemble by resubstitution | |
resume training ensemble | |
shapley | shapley values |
prune ensemble |
copy semantics
value. to learn how value classes affect copy operations, see .
examples
tips
for a bagged ensemble of regression trees, the trained
property
of ens
stores a cell vector of ens.numtrained
compactregressiontree
model objects. for a textual or graphical display of
tree t
in the cell vector,
enter
view(ens.trained{t})
extended capabilities
version history
introduced in r2011a
see also
| |