Machine-learning aided OSNR prediction in optical line systems