separate sampler/sec of learning and sampling