Training and Deployment of Predictive Models for Space Weather Forecasting: An Application on Full-disk and Active Region-based Flare Prediction