A Machine Learning-Driven Approach for Proactive Decision Making in Adaptive Architectures