Parameter Flexible Wildfire Prediction Using Machine Learning Techniques: Forward and Inverse Modelling