A general framework for rational learning in social networks | Synapse