Design Of A Reconfigurable Metamaterial With The Use Of Bayesian Optimization And Machine Learning