 var in_error = window.getErrorFraction(lr, transformedDataSet);
      var val_error = window.getErrorFraction(lr, transformedValDataSet);
      var out_error = window.getErrorFraction(lr, transformedOutSampleDataSet);

      window.displayRegressionResult(weights, in_error, val_error, out_error);
    };

    window.initCanvas();
    lr.regression(transformedDataSet, completeCallback);
  }

  window.displayRegressionResult = function(weights, in_error, val_error, out_error) {
    var status = 'Weight: ' + w