The following sections will show how to use ensembles within the Shogun and Shark-ML libraries. There are out-of-the-box implementations of random forest and gradient boosting algorithms in these libraries; we will show how to use their application programming interface (API) to work with these algorithms. Also, we will implement a stacking ensemble technique from scratch, using primitives from the Shark-ML library.