コード例 #1
0
 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);
 }
コード例 #2
0
 protected abstract void Normalize(ref TMetrics src, ref TMetrics dst);
コード例 #3
0
 protected abstract void ApplyLossFunction(ref TScore score, float label, ref TMetrics loss);
コード例 #4
0
 protected abstract void UpdateCore(float label, ref TScore score, ref TMetrics loss, float weight);