Ensembles: api rest functions and Ensemble class to predict