Пример #1
0
 public float Predict(WeightsAndBias wb, Example e) => Score(wb, e) >= 0.0f ? 1.0f : 0.0f;
Пример #2
0
 private float Score(WeightsAndBias wb, Example e) => wb.Weights.Dot(e.Features) + wb.Bias;