secretflow.ml.boost.sgb_v.core.distributed_tree#
secretflow.ml.boost.sgb_v.core.distributed_tree.distributed_tree#
Classes:
A DistributedTree consists of split trees from each party and leaf weight from label holder |
Functions:
|
- class secretflow.ml.boost.sgb_v.core.distributed_tree.distributed_tree.DistributedTree[源代码]#
基类:
object
A DistributedTree consists of split trees from each party and leaf weight from label holder
Methods:
__init__
()insert_split_tree
(device, split_tree)insert a split tree owned by deivce
set_leaf_weight
(label_holder, leaf_weight)leaf weight is owned by label holder
predict
(x)predict using a single tree.
to_dict
()Serialize to a Dictionary.
- set_leaf_weight(label_holder: PYU, leaf_weight: PYUObject)[源代码]#
leaf weight is owned by label holder
- secretflow.ml.boost.sgb_v.core.distributed_tree.distributed_tree.from_dict(tree_content: Dict) DistributedTree [源代码]#
secretflow.ml.boost.sgb_v.core.distributed_tree.split_tree#
Classes:
Each party will hold one split tree. |
Functions:
|
|
|
judge if a node is left node or right node from index root is view as left. |
- class secretflow.ml.boost.sgb_v.core.distributed_tree.split_tree.SplitTree[源代码]#
基类:
object
Each party will hold one split tree. Note this tree contains no leaf weights, but contains leaf indices.
Methods:
__init__
()insert_split_node
(feature, value[, index])extend_leaf_indices
(leaf_indices)compute leaf nodes' sample selects known by this partition.
to_dict
()