类 BinaryLogisticLoss
- java.lang.Object
-
- org.apache.flink.ml.common.lossfunc.BinaryLogisticLoss
-
- 所有已实现的接口:
Serializable,LossFunc
@Internal public class BinaryLogisticLoss extends Object implements LossFunc
The loss function for binary logistic loss. SeeLogisticRegressionfor example.- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static BinaryLogisticLossINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcomputeGradient(org.apache.flink.ml.common.feature.LabeledPointWithWeight dataPoint, org.apache.flink.ml.linalg.DenseVector coefficient, org.apache.flink.ml.linalg.DenseVector cumGradient)Computes the gradient on the given data point and adds the computed gradient to cumGradient.doublecomputeLoss(org.apache.flink.ml.common.feature.LabeledPointWithWeight dataPoint, org.apache.flink.ml.linalg.DenseVector coefficient)Computes the loss on the given data point.
-
-
-
字段详细资料
-
INSTANCE
public static final BinaryLogisticLoss INSTANCE
-
-
方法详细资料
-
computeLoss
public double computeLoss(org.apache.flink.ml.common.feature.LabeledPointWithWeight dataPoint, org.apache.flink.ml.linalg.DenseVector coefficient)从接口复制的说明:LossFuncComputes the loss on the given data point.- 指定者:
computeLoss在接口中LossFunc- 参数:
dataPoint- A training data point.coefficient- The model parameters.- 返回:
- The loss of the input data.
-
computeGradient
public void computeGradient(org.apache.flink.ml.common.feature.LabeledPointWithWeight dataPoint, org.apache.flink.ml.linalg.DenseVector coefficient, org.apache.flink.ml.linalg.DenseVector cumGradient)从接口复制的说明:LossFuncComputes the gradient on the given data point and adds the computed gradient to cumGradient.- 指定者:
computeGradient在接口中LossFunc- 参数:
dataPoint- A training data point.coefficient- The model parameters.cumGradient- The accumulated gradient.
-
-