A machine learning model for skillful climate system prediction