AI for networks