Machine Learning Techniques for Enhanced Performance in Optical Networks