Holistic learning for multi-target and network monitoring problems