code: function run(sc) {
  
      var MLUtils = require("eclairjs/mllib/MLUtils");
      var LogisticRegressionWithLBFGS = require("eclairjs/mllib/classification").LogisticRegressionWithLBFGS;
      var BinaryClassificationMetrics = require("eclairjs/mllib/evaluation/BinaryClassificationMetrics");
      var Vectors = require("eclairjs/mllib/linalg/Vectors");
      var LabeledPoint = require("eclairjs/mllib/regression/LabeledPoint");
      var Tuple2 = require('eclairjs/Tuple2');
  
      var filename = ((typeof args !== "undefined") && (args.length > 1)) ?
          args[1] : "examples/data/mllib/sample_binary_classification_data.txt";
  
      var data = MLUtils.loadLibSVMFile(sc, filename);
  
  //Split data into training (60%) and test (40%)
      var split = data.randomSplit([0.6, 0.4], 11)
      var training = split[0].cache();
      var test = split[1];
  
      var model = new LogisticRegressionWithLBFGS()
          .setNumClasses(2)
          .run(training);
  
      var predictionAndLabels = test.mapToPair(function (lp, model, Tuple2) {
          return new Tuple2(model.predict(lp.getFeatures()), lp.getLabel());
      }, [model, Tuple2]);
  
      return new BinaryClassificationMetrics(predictionAndLabels);
  
  }
docs: /*
  Copyright 2015 IBM Corp.
  
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.