Machine learning code and experiments