类 HingeLoss
- java.lang.Object
-
- org.apache.flink.ml.common.lossfunc.HingeLoss
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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 HingeLoss 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.
-
-