class_docstr: Counterfactual Reinforcement Learning. 
class_docstr_tok: ["Counterfactual","Reinforcement","Learning","."]
docstr: Resets the predictor.
  
  Parameters
  ----------
  predictor
      New predictor.
code: def reset_predictor(self, predictor: Any) -> None:
      """
      Resets the predictor.
  
      Parameters
      ----------
      predictor
          New predictor.
      """
      self.params["predictor"] = predictor
      self.meta["params"].update(
          CounterfactualRL._serialize_params(self.params)
      )
  
imports: import logging
  import os
  from abc import ABC, abstractmethod
  from copy import deepcopy
  from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Tuple, Union, cast
  import numpy
  from tqdm import tqdm
  from alibi.api.defaults import DEFAULT_DATA_CFRL, DEFAULT_META_CFRL
  from alibi.api.interfaces import Explainer, Explanation, FitMixin
  from alibi.explainers.backends.cfrl_base import generate_empty_condition, get_classification_reward, get_hard_distribution, identity_function
  from alibi.utils.frameworks import Framework, has_pytorch, has_tensorflow
label_desc: Use image node_id 8 for calling the CounterfactualRL obj's underlying member method code with example usage: obj.reset_predictor(predictor) without return types