private int splits;
public Stacking(int splits, int dataSetSize, EnsembleMLMethodFactory mlFactory, EnsembleTrainFactory trainFactory, EnsembleAggregator aggregator)
{
int dataSplits = aggregator.needsTraining() ? splits + 1 : splits;
this.dataSetFactory = new WrappingNonResamplingDataSetFactory(dataSplits);
this.splits = splits;
this.mlFactory = mlFactory;
this.trainFactory = trainFactory;
this.members = new ArrayList<EnsembleML>();
this.aggregator = aggregator;