code: function (algo, trees, treeWeights) {
          this.logger = Logger.getLogger("GradientBoostedTreesModel_js");
          var jvmObject;
          if (arguments[0] instanceof org.apache.spark.mllib.tree.model.GradientBoostedTreesModel) {
              jvmObject = arguments[0];
          } else {
              jvmObject = new org.apache.spark.mllib.tree.model.GradientBoostedTreesModel(Utils.unwrapObject(arguments[0]),
                  Utils.unwrapObject(trees),
                  treeWeights
              );
          }
          JavaWrapper.call(this, jvmObject);
  
      }
docs: Represents a gradient boosted trees model.
  
  @param algo algorithm for the ensemble model, either Classification or Regression
  @param trees tree ensembles
  @param treeWeights tree ensemble weights
  @classdesc
   
  @param {Algo} algo
  @param {module:eclairjs/mllib/tree/model.DecisionTreeModel[]} trees
  @param {number[]} treeWeights
  @returns {??}
  @class
  @memberof module:eclairjs/mllib/tree/model