public void addResult(double pred[],Instance real){
  predictions.add(pred);
  actuals.add(MLUtils.toIntArray(real,pred.length));
}

public void addResult ( double pred [ ] , Instance real ) { predictions . add ( pred ) ; actuals . add ( MLUtils . toIntArray ( real , pred . length ) ) ; }
addresult - add an entry .
