Optimizing AI Education for Stakeholders: Leveraging the Bayesian Optimization Framework for Enhanced Learning