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

Classes:

Shuffler()

class secretflow.ml.boost.sgb_v.factory.components.shuffler.Shuffler[源代码]#

基类:Component

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

reset_shuffle_masks()

create_shuffle_mask(worker_index, key, ...)

unshuffle_split_buckets(...)

unshuffle split buckets viewed by each parition

__init__()[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
reset_shuffle_masks()[源代码]#
create_shuffle_mask(worker_index: int, key: int, bucket_list: List[PYUObject]) List[int][源代码]#
unshuffle_split_buckets(split_buckets_parition_wise: List[PYUObject]) List[PYUObject][源代码]#

unshuffle split buckets viewed by each parition

参数:

split_buckets_parition_wise (List[PYUObject]) – PYUObject is List[int], split buckets viewed from this partition

返回:

unshuffled split buckets

返回类型:

List[List[PYUObject]]

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

Classes:

ShufflerParams([seed])

'seed': Pseudorandom number generator seed.

Shuffler()

class secretflow.ml.boost.sgb_v.factory.components.shuffler.shuffler.ShufflerParams(seed: int = 1212)[源代码]#

基类:object

‘seed’: Pseudorandom number generator seed.

default: 1212

Attributes:

seed

Methods:

__init__([seed])

seed: int = 1212#
__init__(seed: int = 1212) None#
class secretflow.ml.boost.sgb_v.factory.components.shuffler.shuffler.Shuffler[源代码]#

基类:Component

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

reset_shuffle_masks()

create_shuffle_mask(worker_index, key, ...)

unshuffle_split_buckets(...)

unshuffle split buckets viewed by each parition

__init__()[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
reset_shuffle_masks()[源代码]#
create_shuffle_mask(worker_index: int, key: int, bucket_list: List[PYUObject]) List[int][源代码]#
unshuffle_split_buckets(split_buckets_parition_wise: List[PYUObject]) List[PYUObject][源代码]#

unshuffle split buckets viewed by each parition

参数:

split_buckets_parition_wise (List[PYUObject]) – PYUObject is List[int], split buckets viewed from this partition

返回:

unshuffled split buckets

返回类型:

List[List[PYUObject]]

secretflow.ml.boost.sgb_v.factory.components.shuffler.worker_shuffler#

Classes:

WorkerShuffler

ActorProxy(WorkerShuffler) 的别名

secretflow.ml.boost.sgb_v.factory.components.shuffler.worker_shuffler.WorkerShuffler[源代码]#

ActorProxy(WorkerShuffler) 的别名 Methods:

__init__(*args, **kwargs)

Abstraction device object base class.

reset_shuffle_mask()

create_shuffle_mask(key, bucket_list)

is_shuffled()

undo_shuffle_mask(key, index)

undo_shuffle_mask_list_wise(split_buckets)