class_docstr: Base class for similarity explainers.
docstr: Resets the predictor to the given predictor.
  
  Parameters
  ----------
  predictor
      The new predictor to use.
docstr_tok: ["Resets","the","predictor","to","the","given","predictor",".","Parameters","--","--","--","--","--","predictor","The","new","predictor","to","use","."]
code: def reset_predictor(
      self, predictor: "Union[tensorflow.keras.Model, torch.nn.Module]"
  ) -> None:
      """Resets the predictor to the given predictor.
  
      Parameters
      ----------
      predictor
          The new predictor to use.
      """
      self.predictor = predictor
  
imports: from abc import ABC
  from typing import TYPE_CHECKING, Any, Callable, List, Optional, Union
  import numpy
  from alibi.api.interfaces import Explainer
  from alibi.explainers.similarity.backends import _select_backend
  from alibi.utils.frameworks import Framework, has_pytorch, has_tensorflow
  from alibi.utils.missing_optional_dependency import import_optional
  from tqdm import tqdm
  from typing_extensions import Literal
label_desc: Use image node_id 11 for calling the BaseSimilarityExplainer obj's underlying member method code with example usage: obj.reset_predictor(predictor) without return types