- template vs subclass for generic loss functions - generation of docs via roxygen2 - TODOS for next week: investigate if current approach is a good idea with binary segmentation + change in mean loss. - set.seed(1) to control random numbers (if you use random numbers for input data)