aise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Rate = </span><span class="si">{</span><span class="n">rate</span><span class="si">}</span><span class="s2"> Expected Rate in [0.0, 1.0]&quot;</span><span class="p">)</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">_rate</span> <span class="o">=</span> <span class="n">rate</span>

    <span class="k">def</span><span class="w"> </span><span class="fm">__init