class_docstr: Defines the ErrorAnalysisManager for discovering errors in a model.
class_docstr_tok: ["Defines","the","ErrorAnalysisManager","for","discovering","errors","in","a","model","."]
code: def _get_error_analysis(self, report, props):
      error_analysis = ErrorAnalysisData()
      error_analysis.maxDepth = props[Keys.MAX_DEPTH]
      error_analysis.numLeaves = props[Keys.NUM_LEAVES]
      error_analysis.minChildSamples = props[Keys.MIN_CHILD_SAMPLES]
      error_analysis.tree = report.tree
      error_analysis.matrix = report.matrix
      error_analysis.importances = report.importances
      error_analysis.metric = metric_to_display_name[
          self._analyzer.metric
      ]
      error_analysis.root_stats = report.root_stats
      return error_analysis
  
imports: import json
  import warnings
  from pathlib import Path
  from typing import Any, List, Optional
  import jsonschema
  import pandas
  from erroranalysis._internal.constants import metric_to_display_name
  from erroranalysis._internal.error_analyzer import ModelAnalyzer
  from erroranalysis._internal.error_report import as_error_report
  from erroranalysis._internal.error_report import json_converter
  from raiutils.exceptions import UserConfigValidationException
  from raiutils.models import ModelTask
  from responsibleai._config.base_config import BaseConfig
  from responsibleai._interfaces import ErrorAnalysisData
  from responsibleai._internal.constants import ErrorAnalysisManagerKeys
  from responsibleai._internal.constants import FileFormats, ListProperties, ManagerNames
  from responsibleai._tools.shared.state_directory_management import DirectoryManager
  from responsibleai.exceptions import ConfigAndResultMismatchException, DuplicateManagerConfigException
  from responsibleai.managers.base_manager import BaseManager
  from responsibleai.utils import _find_features_having_missing_values, _measure_time
label_desc: Use image node_id 8 for calling the ErrorAnalysisManager obj's underlying member method code with example usage: obj._get_error_analysis(report, props) and returns: error_analysis