Using machine learning in an open optical line system controller