class_docstr: Defines the ErrorAnalysisManager for discovering errors in a model.
class_docstr_tok: ["Defines","the","ErrorAnalysisManager","for","discovering","errors","in","a","model","."]
docstr: Load the ErrorAnalysisManager from the given path.
  
  :param path: The directory path to load the ErrorAnalysisManager from.
  :type path: str
  :param rai_insights: The loaded parent RAIInsights.
  :type rai_insights: RAIInsights
  :return: The ErrorAnalysisManager manager after loading.
  :rtype: ErrorAnalysisManager
docstr_tok: ["Load","the","ErrorAnalysisManager","from","the","given","path",".",":","param","path",":","The","directory","path","to","load","the","ErrorAnalysisManager","from",".",":","type","path",":","str",":","param","rai_insights",":","The","loaded","parent","RAIInsights",".",":","type","rai_insights",":","RAIInsights",":","return",":","The","ErrorAnalysisManager","manager","after","loading",".",":","rtype",":","ErrorAnalysisManager"]
code: def _load(path, rai_insights):
      """Load the ErrorAnalysisManager from the given path.
  
      :param path: The directory path to load the ErrorAnalysisManager from.
      :type path: str
      :param rai_insights: The loaded parent RAIInsights.
      :type rai_insights: RAIInsights
      :return: The ErrorAnalysisManager manager after loading.
      :rtype: ErrorAnalysisManager
      """
      # create the ErrorAnalysisManager without any properties using
      # the __new__ function, similar to pickle
      inst = ErrorAnalysisManager.__new__(ErrorAnalysisManager)
  
      ea_config_list = []
      ea_report_list = []
      all_ea_dirs = DirectoryManager.list_sub_directories(path)
      for ea_dir in all_ea_dirs:
          directory_manager = DirectoryManager(
              parent_directory_path=path, sub_directory_name=ea_dir
          )
  
          config_path = (
              directory_manager.get_config_directory()
              / f"config{FileFormats.JSON}"
          )
          with open(config_path, "r") as file:
              ea_config = json.load(file, object_hook=as_error_config)
              ea_config_list.append(ea_config)
  
          report_path = (
              directory_manager.get_data_directory()
              / f"report{FileFormats.JSON}"
          )
          with open(report_path, "r") as file:
              ea_report = json.load(file, object_hook=as_error_report)
              # Validate the serialized output against schema
              schema = ErrorAnalysisManager._get_error_analysis_schema()
              jsonschema.validate(
                  json.loads(ea_report.to_json()), schema
              )
              ea_report_list.append(ea_report)
  
      inst.__dict__["_ea_report_list"] = ea_report_list
      inst.__dict__["_ea_config_list"] = ea_config_list
  
      categorical_features = rai_insights.categorical_features
      inst.__dict__["_categorical_features"] = categorical_features
      target_column = rai_insights.target_column
      true_y = rai_insights.test[target_column]
      dataset = rai_insights.test.drop(columns=[target_column])
      inst.__dict__["_dataset"] = dataset
      inst.__dict__["_true_y"] = true_y
      feature_names = list(dataset.columns)
      inst.__dict__["_feature_names"] = feature_names
      dropped_features = None
      if rai_insights._feature_metadata is not None:
          dropped_features = (
              rai_insights._feature_metadata.dropped_features
          )
      inst.__dict__["_dropped_features"] = dropped_features
      wrapper_model = get_wrapped_model(
          rai_insights.model, dropped_features
      )
      inst.__dict__["_analyzer"] = ModelAnalyzer(
          wrapper_model,
          dataset,
          true_y,
          feature_names,
          categorical_features,
      )
      return inst
  
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 11 for calling the ErrorAnalysisManager obj's underlying member method code with example usage: obj._load(path, rai_insights) and returns: inst