code: function predict(data) {
      var probabilities= new Array(data.length);
      for(var i=0;i<data.length;i++) {
          probabilities[i]= this.predictOne(data[i]);
      }
      return probabilities;
  }
docs: /*
  convenience function. Here, data is NxD array.
  returns probabilities of being 1 for all data in an array.