Towards Automatic Generation of Performance Models for Dynamic Tuning using Machine Learning