Planning and learning to perceive in partially unknown environments | Synapse