Example #1
0
 public FrameSplitter(Frame dataset, float[] ratios, Key[] destKeys, Key jobKey) {
   assert ratios.length > 0 : "No ratio specified!";
   assert ratios.length < 100 : "Too many frame splits demanded!";
   this.dataset = dataset;
   this.ratios = ratios;
   this.destKeys =
       destKeys != null ? destKeys : Utils.generateNumKeys(dataset._key, ratios.length + 1);
   assert this.destKeys.length == this.ratios.length + 1
       : "Unexpected number of destination keys.";
   this.jobKey = jobKey;
 }