Automatic Management of N×N Photonic Switch Powered by Machine Learning in Software-defined Optical Transport