XGBoost is still a great choice for a wide variety of real-world machine learning problems . Neural networks, especially recurrent neural networks with LSTMs are generally better for time-series forecasting tasks. There is “no free lunch” in machine learning and every algorithm has its own advantages and disadvantages.