Machine Learning Climate Model Dynamics: Offline versus Online Performance