public void Update(ref TScore score, float label, float weight, ref TMetrics loss) { SumWeights += weight; TotalLabelW += label * weight; TotalLabelSquaredW += label * label * weight; UpdateCore(label, in score, in loss, weight); }
protected abstract void Normalize(ref TMetrics src, ref TMetrics dst);
protected abstract void ApplyLossFunction(ref TScore score, float label, ref TMetrics loss);
protected abstract void UpdateCore(float label, ref TScore score, ref TMetrics loss, float weight);