TDA233 / DIT381 Algorithms for machine learning and inference