This is the ensemble method based on the previous NN implementation.