Updates the tree ensemble by either adding a layer to the last tree being grown
tf.raw_ops.BoostedTreesUpdateEnsemble(
tree_ensemble_handle,
feature_ids,
node_ids,
gains,
thresholds,
left_node_contribs,
right_node_contribs,
max_depth,
learning_rate,
pruning_mode,
name=None
)
or by starting a new tree.
Args |
|---|
tree_ensemble_handle
Tensor of type resource.
Handle to the ensemble variable.
feature_ids
Tensor of type int32.
Rank 1 tensor with ids for each feature. This is the real id of
the feature that will be used in the split.
node_ids
Tensor objects with type int32.
List of rank 1 tensors representing the nodes for which this feature
has a split.
gains
node_ids of Tensor objects with type float32.
List of rank 1 tensors representing the gains for each of the feature's
split.
thresholds
node_ids of Tensor objects with type int32.
List of rank 1 tensors representing the thesholds for each of the
feature's split.
left_node_contribs
node_ids of Tensor objects with type float32.
List of rank 2 tensors with left leaf contribs for each of
the feature's splits. Will be added to the previous node values to constitute
the values of the left nodes.
right_node_contribs
node_ids of Tensor objects with type float32.
List of rank 2 tensors with right leaf contribs for each
of the feature's splits. Will be added to the previous node values to constitute
the values of the right nodes.
max_depth
Tensor of type int32. Max depth of the tree to build.
learning_rate
Tensor of type float32.
shrinkage const for each new tree.
pruning_mode
int that is >= 0.
0-No pruning, 1-Pre-pruning, 2-Post-pruning.
name
Returns | |
|---|---|
| The created Operation. |