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

Classes:

ModelBuilder()

Functions related to build models including making predictions and add trees

class secretflow.ml.boost.sgb_v.factory.components.model_builder.ModelBuilder[源代码]#

基类:Component

Functions related to build models including making predictions and add trees

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

init_pred(sample_num)

init_model()

insert_tree(tree)

get_tree_num()

finish()

__init__()[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
init_pred(sample_num: int) PYUObject[源代码]#
init_model()[源代码]#
insert_tree(tree: DistributedTree)[源代码]#
get_tree_num() int[源代码]#
finish() SgbModel[源代码]#

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

Classes:

ModelBuilderParams([base_score, objective])

'objective': Specify the learning objective.

ModelBuilder()

Functions related to build models including making predictions and add trees

class secretflow.ml.boost.sgb_v.factory.components.model_builder.model_builder.ModelBuilderParams(base_score: float = 0, objective: RegType = RegType.Logistic)[源代码]#

基类:object

‘objective’: Specify the learning objective.

default: ‘logistic’ range: [‘linear’, ‘logistic’]

‘base_score’: The initial prediction score of all instances, global bias.

default: 0

Attributes:

base_score

objective

Methods:

__init__([base_score, objective])

base_score: float = 0#
objective: RegType = 'logistic'#
__init__(base_score: float = 0, objective: RegType = RegType.Logistic) None#
class secretflow.ml.boost.sgb_v.factory.components.model_builder.model_builder.ModelBuilder[源代码]#

基类:Component

Functions related to build models including making predictions and add trees

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

init_pred(sample_num)

init_model()

insert_tree(tree)

get_tree_num()

finish()

__init__()[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
init_pred(sample_num: int) PYUObject[源代码]#
init_model()[源代码]#
insert_tree(tree: DistributedTree)[源代码]#
get_tree_num() int[源代码]#
finish() SgbModel[源代码]#