Ensemble models 3 (learning networks)

To ensure code in this tutorial runs as shown, download the tutorial project folder and follow these instructions.

If you have questions or suggestions about this tutorial, please open an issue here.

Illustration of learning networks to create homogeneous ensemble using learning networks.

Learning networks are an advanced MLJ feature which are covered in detail, with examples, in the Learning networks section of the manual. In the "Ensemble" and "Ensemble (2)" tutorials it is shown how to create and apply homogeneous ensembles using MLJ's built-in EnsembleModel wrapper. To provide a simple illustration of learning networks we show how a user could build their own ensemble wrapper. We simplify the illustration by excluding bagging, which means all randomness has to be generated by the atomic models themselves (e.g., by the random selection of features in each split of a decision tree).

For a more advanced illustration, see the "Stacking" tutorial.

Some familiarity with the early parts of Learning networks by example will be helpful, but is not essential.