secretflow.ml.boost.sgb_v.factory.components.order_map_manager#

Classes:

OrderMapManager()

class secretflow.ml.boost.sgb_v.factory.components.order_map_manager.OrderMapManager[源代码]#

基类:Component

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

build_order_map(x)

get_order_map()

get_feature_buckets()

get_bucket_lists(col_choices_list)

compute_left_child_selects(actor_index, ...)

batch_query_split_points_each_party(queries_list)

batch_compute_left_child_selects_each_party(...)

__init__() None[源代码]#
show_params()[源代码]#
set_params(params: Dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
build_order_map(x: FedNdarray)[源代码]#
get_order_map() FedNdarray[源代码]#
get_feature_buckets() List[PYUObject][源代码]#
get_bucket_lists(col_choices_list: List[PYUObject]) List[PYUObject][源代码]#
compute_left_child_selects(actor_index: int, feature: int, split_point_index: int, sampled_indices: Optional[List[int]] = None) PYUObject[源代码]#
batch_query_split_points_each_party(queries_list: List[PYUObject]) List[PYUObject][源代码]#
batch_compute_left_child_selects_each_party(split_feature_buckets_each_party: List[PYUObject], sampled_indices: Optional[List[int]] = None) List[PYUObject][源代码]#

secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_actor#

Classes:

OrderMapActor

ActorProxy(OrderMapActor) 的别名

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:

OrderMapBuilderParams([sketch_eps, seed])

'sketch_eps': This roughly translates into O(1 / sketch_eps) number of bins.

OrderMapManager()

Functions:

eps_inverse(eps)

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:

sketch_eps

seed

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[源代码]#

基类:Component

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

build_order_map(x)

get_order_map()

get_feature_buckets()

get_bucket_lists(col_choices_list)

compute_left_child_selects(actor_index, ...)

batch_query_split_points_each_party(queries_list)

batch_compute_left_child_selects_each_party(...)

__init__() None[源代码]#
show_params()[源代码]#
set_params(params: Dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
build_order_map(x: FedNdarray)[源代码]#
get_order_map() FedNdarray[源代码]#
get_feature_buckets() List[PYUObject][源代码]#
get_bucket_lists(col_choices_list: List[PYUObject]) List[PYUObject][源代码]#
compute_left_child_selects(actor_index: int, feature: int, split_point_index: int, sampled_indices: Optional[List[int]] = None) PYUObject[源代码]#
batch_query_split_points_each_party(queries_list: List[PYUObject]) List[PYUObject][源代码]#
batch_compute_left_child_selects_each_party(split_feature_buckets_each_party: List[PYUObject], sampled_indices: Optional[List[int]] = None) List[PYUObject][源代码]#
secretflow.ml.boost.sgb_v.factory.components.order_map_manager.order_map_manager.eps_inverse(eps)[源代码]#