server/src/main/resources/eclairjs/mllib/optimization/Gradient.js
function () {
        this.logger = Logger.getLogger("Gradient_js");
        var jvmObject;
        if (arguments[0] instanceof org.apache.spark.mllib.optimization.Gradient) {
            jvmObject = arguments[0];
        } else {
            jvmObject = new org.apache.spark.mllib.optimization.Gradient();
        }

        JavaWrapper.call(this, jvmObject);

    }
function () {
        this.logger = Logger.getLogger("Gradient_js");
        var jvmObject;
        if (arguments[0] instanceof org.apache.spark.mllib.optimization.Gradient) {
            jvmObject = arguments[0];
        } else {
            jvmObject = new org.apache.spark.mllib.optimization.Gradient();
        }

        JavaWrapper.call(this, jvmObject);

    }
function ( ) { this . logger = Logger . getLogger ( "Gradient_js" ) ; var jvmObject ; if ( arguments [ 0 ] instanceof org . apache . spark . mllib . optimization . Gradient ) { jvmObject = arguments [ 0 ] ; } else { jvmObject = new org . apache . spark . mllib . optimization . Gradient ( ) ; } JavaWrapper . call ( this , jvmObject ) ; }
Class used to compute the gradient for a loss function, given a single data point.
@class
@memberof module:eclairjs/mllib/optimization
@constructor
Class used to compute the gradient for a loss function given a single data point .