Connecting neural circuit architecture and experience-driven probabilistic computations