Analysis of the COVID-19 pandemic by SIR model and machine learning technics for forecasting