Hi,
I believe you'd need to be a bit more specific. What kind of model? What do you want to achieve? What kind of data do you want to use from a training perspective? Do you want this data to arrive as Packet_In from packets, or rather internal statistics from ONOS?
I am probably not the best to answer this question, but others might be needing more information.
Cheers,