I think that the Github repository by @NickGnd (shared here) comprises some relevant code. In particular, see the classifier Livebook in chapter 5.
BTW, the Programming Machine Learning book is a masterpiece for understanding ML (in my very personal opinion).