class_docstr: A mixin class containing methods related to a drift detector's configuration dictionary.
class_docstr_tok: ["A","mixin","class","containing","methods","related","to","a","drift","detector","'s","configuration","dictionary","."]
docstr: Get the detector's configuration dictionary.
  
  Returns
  -------
  The detector's configuration dictionary.
docstr_tok: ["Get","the","detector","'s","configuration","dictionary",".","Returns","--","--","--","-","The","detector","'s","configuration","dictionary","."]
code: def get_config(
      self,
  ) -> (
      dict
  ):  # TODO - move to BaseDetector once config save/load implemented for non-drift
      """
      Get the detector's configuration dictionary.
  
      Returns
      -------
      The detector's configuration dictionary.
      """
      if self.config is not None:
          # Get config (stored in top-level self)
          cfg = self.config
          # Add large artefacts back to config
          for key in LARGE_ARTEFACTS:
              if key in cfg and hasattr(self._nested_detector, key):
                  cfg[key] = getattr(self._nested_detector, key)
          # Set x_ref_preprocessed flag
          # If no preprocess_at_init, always true!
          preprocess_at_init = getattr(
              self._nested_detector, "preprocess_at_init", True
          )
          cfg["x_ref_preprocessed"] = (
              preprocess_at_init
              and self._nested_detector.preprocess_fn is not None
          )
          return cfg
      else:
          raise NotImplementedError(
              "Getting a config (or saving via a config file) is not yet implemented for this"
              "detector"
          )
  
imports: from abc import ABC, abstractmethod
  import os
  import copy
  import json
  import numpy
  from typing import Dict, Any, Optional, Union
  from typing_extensions import Protocol, runtime_checkable
  from alibi_detect.version import __version__
label_desc: Use image node_id 1 for calling the DriftConfigMixin obj's underlying member method code with example usage: obj.get_config() and returns: cfg