All the R code for this post is available on GitHub: nanxstats/deep-learning-recipes. Photo: Three Palms by Jamie Davies At the end of our last post, I briefly mentioned that the triplet loss function is a more proper loss designed for both recommendation problems with implicit feedback data and distance metric learning problems. For its importance in solving these practical problems, and also as an excellent programming exercise, I decided to implement it with R and …