Machine Learning Approach to Earthquake Rupture Dynamics