server/src/main/resources/eclairjs/mllib/evaluation/RegressionMetrics.js
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);

    }
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);

    }
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 ) ; }
Evaluator for regression.

@param predictionAndObservations an RDD of (prediction, observation) pairs.
@memberof module:eclairjs/mllib/evaluation
@classdesc
@param {module:eclairjs.RDD} predictionAndObservations
@class
Evaluator for regression .