ml/sgd-linear-model.js
function regularizeNone(weights, gradientCount) {
  const [gradient, count] = gradientCount;

  for (let i = 0; i < gradient.length; i++) {
    let grad = (gradient[i] || 0) / count;
    weights[i] = (weights[i] || 0) - grad;
  }
}
function regularizeNone(weights, gradientCount) {
  const [gradient, count] = gradientCount;

  for (let i = 0; i < gradient.length; i++) {
    let grad = (gradient[i] || 0) / count;
    weights[i] = (weights[i] || 0) - grad;
  }
}
function regularizeNone ( weights , gradientCount ) { const [ gradient , count ] = gradientCount ; for ( let i = 0 ; i < gradient . length ; i ++ ) { let grad = ( gradient [ i ] || 0 ) / count ; weights [ i ] = ( weights [ i ] || 0 ) - grad ; } }
None, a.k.a ordinary least squares
None a . k . a ordinary least squares