A machine learning based plasticity model using proper orthogonal decomposition