code: function (predictionAndObservations) {
          this.logger = Logger.getLogger("RegressionMetrics_js");
          var jvmObject;
          if (predictionAndObservations instanceof org.apache.spark.mllib.evaluation.RegressionMetrics) {
              jvmObject = predictionAndObservations;
          } else {
              jvmObject = new org.apache.spark.mllib.evaluation.RegressionMetrics(Utils.unwrapObject(predictionAndObservations).rdd());
          }
  
  
          JavaWrapper.call(this, jvmObject);
  
      }
docs: Evaluator for regression.
  
  @param predictionAndObservations an RDD of (prediction, observation) pairs.
  @memberof module:eclairjs/mllib/evaluation
  @classdesc
  @param {module:eclairjs.RDD} predictionAndObservations
  @class