.. py:method:: use_sampler(new_sampler)
为当前数据集对象更换一个新的采样器。
**参数:**
- **new_sampler** (Sampler) :替换的新采样器。