First-Principle Modeling And Machine Learning For Space Weather Forecasting