Machine-Learning Accelerated Calculations of Reduced Density Matrices