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

Classes:

SplitFinder()

class secretflow.ml.boost.sgb_v.factory.components.split_finder.SplitFinder[源代码]#

基类:Component

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

find_best_splits(G, H, tree_num, level)

__init__() None[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
find_best_splits(G: ndarray, H: ndarray, tree_num: int, level: int) Tuple[ndarray, ndarray][源代码]#

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

Classes:

SplitFinderParams(gamma, reg_lambda, audit_paths)

'gamma': float. Greater than 0 means pre-pruning enabled.

SplitFinder()

Functions:

write_log(x, path)

class secretflow.ml.boost.sgb_v.factory.components.split_finder.split_finder.SplitFinderParams(gamma: float = 0, reg_lambda: float = 0.1, audit_paths: dict = <factory>)[源代码]#

基类:object

‘gamma’: float. Greater than 0 means pre-pruning enabled.

Gain less than it will not induce split node.

default: 0.1 range: [0, 10000]

‘reg_lambda’: float. L2 regularization term on weights.

default: 0.1 range: [0, 10000]

‘audit_paths’: dict. {device : path to save log for audit}

Attributes:

gamma

reg_lambda

audit_paths

Methods:

__init__([gamma, reg_lambda, audit_paths])

gamma: float = 0#
reg_lambda: float = 0.1#
audit_paths: dict#
__init__(gamma: float = 0, reg_lambda: float = 0.1, audit_paths: dict = <factory>) None#
class secretflow.ml.boost.sgb_v.factory.components.split_finder.split_finder.SplitFinder[源代码]#

基类:Component

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

find_best_splits(G, H, tree_num, level)

__init__() None[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
find_best_splits(G: ndarray, H: ndarray, tree_num: int, level: int) Tuple[ndarray, ndarray][源代码]#
secretflow.ml.boost.sgb_v.factory.components.split_finder.split_finder.write_log(x, path)[源代码]#