code: protected void setLayout() {
  
  		int sizeEnsemble = this.ensembleSizeOption.getValue();
  
  		distributorP = new BoostingDistributorProcessor();
  		distributorP.setSizeEnsemble(sizeEnsemble);
  		this.builder.addProcessor(distributorP, 1);
  	
  		//instantiate classifier
  		classifier = this.baseLearnerOption.getValue();
  		classifier.init(builder, this.dataset, sizeEnsemble);
  		
  		BoostingPredictionCombinerProcessor predictionCombinerP= new BoostingPredictionCombinerProcessor();
  		predictionCombinerP.setSizeEnsemble(sizeEnsemble);
  		this.builder.addProcessor(predictionCombinerP, 1);
  		
  		//Streams
  		resultStream = this.builder.createStream(predictionCombinerP);
  		predictionCombinerP.setOutputStream(resultStream);
  
  		for (Stream subResultStream:classifier.getResultStreams()) {
  			this.builder.connectInputKeyStream(subResultStream, predictionCombinerP);
  		}
  		
  		/* The testing stream. */
  		Stream testingStream = this.builder.createStream(distributorP);
  		this.builder.connectInputKeyStream(testingStream, classifier.getInputProcessor());
  	
  		/* The prediction stream. */
  		Stream predictionStream = this.builder.createStream(distributorP);
  		this.builder.connectInputKeyStream(predictionStream, classifier.getInputProcessor());
  		
  		distributorP.setOutputStream(testingStream);
  		distributorP.setPredictionStream(predictionStream);
                  
      // Addition to Bagging: stream to train
      /* The training stream. */
  		Stream trainingStream = this.builder.createStream(predictionCombinerP);
  		predictionCombinerP.setTrainingStream(trainingStream);
  		this.builder.connectInputKeyStream(trainingStream, classifier.getInputProcessor());
                  
  	}
docs: Sets the layout.