class_docstr: Defines the ExplainerManager for explaining a model.
class_docstr_tok: ["Defines","the","ExplainerManager","for","explaining","a","model","."]
docstr: Initialize the surrogate model.
docstr_tok: ["Initialize","the","surrogate","model","."]
code: def _initialize_surrogate_model(self):
      """Initialize the surrogate model."""
      is_sparse = issparse(self._evaluation_examples)
      num_cols = self._evaluation_examples.shape[1]
      many_cols = num_cols > SPARSE_NUM_FEATURES_THRESHOLD
      self._surrogate_model = LGBMExplainableModel
      if is_sparse and many_cols:
          self._surrogate_model = LinearExplainableModel
  
imports: import json
  import warnings
  from pathlib import Path
  from typing import Any, List, Optional
  import numpy
  import pandas
  from interpret_community.explanation.explanation import FeatureImportanceExplanation, load_explanation, save_explanation
  from interpret_community.mimic.mimic_explainer import MimicExplainer
  from interpret_community.mimic.models.lightgbm_model import LGBMExplainableModel
  from interpret_community.mimic.models.linear_model import LinearExplainableModel
  from scipy.sparse import issparse
  from raiutils.data_processing import convert_to_list
  from raiutils.exceptions import UserConfigValidationException
  from raiutils.models import ModelTask
  from responsibleai._interfaces import EBMGlobalExplanation, FeatureImportance, ModelExplanationData, PrecomputedExplanations
  from responsibleai._internal.constants import ExplainerManagerKeys
  from responsibleai._internal.constants import ExplanationKeys, ListProperties, ManagerNames, Metadata
  from responsibleai._tools.shared.state_directory_management import DirectoryManager
  from responsibleai.managers.base_manager import BaseManager
  from responsibleai.utils import _find_features_having_missing_values, _measure_time
label_desc: Use image node_id 3 for calling the ExplainerManager obj's underlying member method code with example usage: obj._initialize_surrogate_model() without return types