public AdaBoost(int iterationsT, int dataSetSize, EnsembleMLMethodFactory mlFactory, EnsembleTrainFactory trainFactory, EnsembleAggregator aggregator) {
this.dataSetFactory = new ResamplingDataSetFactory(dataSetSize);
this.T = iterationsT;
this.mlFactory = mlFactory;
this.va = new VectorAlgebra();
this.weights = new ArrayList<Double>();
this.members = new ArrayList<EnsembleML>();
this.trainFactory = trainFactory;
this.aggregator = aggregator;
}