secretflow.ml.boost.sgb_v.factory.components.order_map_manager#
Classes:
- class secretflow.ml.boost.sgb_v.factory.components.order_map_manager.OrderMapManager[源代码]#
基类:
ComponentMethods:
__init__()set_params(params)get_params(params)set_devices(devices)get_bucket_lists(col_choices_list)compute_left_child_selects(actor_index, ...)batch_query_split_points_each_party(queries_list)- build_order_map(x: FedNdarray)[源代码]#
- get_order_map() FedNdarray[源代码]#
secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_actor#
Classes:
|
- secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_actor.OrderMapActor[源代码]#
ActorProxy(OrderMapActor)的别名 Methods:__init__(*args, **kwargs)Abstraction device object base class.
build_order_map(x, buckets, seed)Set up global context.
get_features()Get the number of features at this partition
get_feature_buckets()Get the number of buckets for each feature
get_split_points()batch_query_split_points(queries)get_bucket_list(col_choices)Get number of buckets at chosen columns
batch_compute_left_child_selects(...[, ...])compute_left_child_selects(feature, ...[, ...])Compute the left child node select in bool array based on order map, feature and split_point_index
secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_manager#
Classes:
|
'sketch_eps': This roughly translates into O(1 / sketch_eps) number of bins. |
Functions:
|
- class secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_manager.OrderMapBuilderParams(sketch_eps: float = 0.1, seed: int = 1212)[源代码]#
基类:
object- ‘sketch_eps’: This roughly translates into O(1 / sketch_eps) number of bins.
default: 0.1 range: (0, 1]
- ‘seed’: Pseudorandom number generator seed.
default: 1212
Attributes:
Methods:
__init__([sketch_eps, seed])- sketch_eps: float = 0.1#
- seed: int = 1212#
- __init__(sketch_eps: float = 0.1, seed: int = 1212) None#
- class secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_manager.OrderMapManager[源代码]#
基类:
ComponentMethods:
__init__()set_params(params)get_params(params)set_devices(devices)get_bucket_lists(col_choices_list)compute_left_child_selects(actor_index, ...)batch_query_split_points_each_party(queries_list)- build_order_map(x: FedNdarray)[源代码]#
- get_order_map() FedNdarray[源代码]#