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

Classes:

LossComputer()

Compute loss, gradients and hessians

class secretflow.ml.boost.sgb_v.factory.components.loss_computer.LossComputer[源代码]#

基类:Component

Compute loss, gradients and hessians

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

compute_gh(y, pred)

__init__() None[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
compute_gh(y: Union[PYUObject, ndarray], pred: Union[PYUObject, ndarray]) Tuple[PYUObject, PYUObject][源代码]#

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

Classes:

LossComputerParams([objective])

'objective': Specify the learning objective.

LossComputer()

Compute loss, gradients and hessians

class secretflow.ml.boost.sgb_v.factory.components.loss_computer.loss_computer.LossComputerParams(objective: RegType = RegType.Logistic)[源代码]#

基类:object

‘objective’: Specify the learning objective.

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

Attributes:

objective

Methods:

__init__([objective])

objective: RegType = 'logistic'#
__init__(objective: RegType = RegType.Logistic) None#
class secretflow.ml.boost.sgb_v.factory.components.loss_computer.loss_computer.LossComputer[源代码]#

基类:Component

Compute loss, gradients and hessians

Methods:

__init__()

show_params()

set_params(params)

get_params(params)

set_devices(devices)

compute_gh(y, pred)

__init__() None[源代码]#
show_params()[源代码]#
set_params(params: dict)[源代码]#
get_params(params: dict)[源代码]#
set_devices(devices: Devices)[源代码]#
compute_gh(y: Union[PYUObject, ndarray], pred: Union[PYUObject, ndarray]) Tuple[PYUObject, PYUObject][源代码]#