indow.joinWithRounding(weights, 4) + '\r\n'
               + 'In sample error: ' + '\r\n' + in_error + '\r\n'
               + 'Validation sample error: ' + '\r\n' + val_error + '\r\n'
               + 'Out of sample error: ' + '\r\n' + out_error;
    $('#status').val(status);
  }

  window.getErrorFraction = function(lr, dataSet) {
    var errorPointCount = 0;
    for(var i in dataSet) {
      if(dataSet[i].output !== Math.sign(lr.getOutput(dataSet[i].point))) errorPointCount += 1;
    }
    return errorPo