randomly sampling features.</span>

<span class="sd">        :param query_instance: Test point of interest. A dictionary of feature names and values or a single row dataframe.</span>
<span class="sd">        :param total_CFs: Total number of counterfactuals required.</span>
<span class="sd">        :param desired_range: For regression problems. Contains the outcome range to generate counterfactuals in.</span>
<span class="sd">        :param desired_class: Desired counterfactual class - can take 0 or 1. Defa