类 BinaryLogisticLoss

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void computeGradient​(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.
      double computeLoss​(org.apache.flink.ml.common.feature.LabeledPointWithWeight dataPoint, org.apache.flink.ml.linalg.DenseVector coefficient)
      Computes the loss on the given data point.
    • 方法详细资料

      • computeLoss

        public double computeLoss​(org.apache.flink.ml.common.feature.LabeledPointWithWeight dataPoint,
                                  org.apache.flink.ml.linalg.DenseVector coefficient)
        从接口复制的说明: LossFunc
        Computes 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)
        从接口复制的说明: LossFunc
        Computes 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.