Machine-learning-aided abstraction of photonic integrated circuits in software-defined optical transport