Machine Learning Assisted Model of QoT Penalties for Photonics Switching System