Making memories with Machine Learning