class_docstr: Intent classifier using the Logistic Regression.
docstr: Loads trained component (see parent class for full docstring).
docstr_tok: ["Loads","trained","component","(","see","parent","class","for","full","docstring",")","."]
code: def load(
      cls,
      config: Dict[Text, Any],
      model_storage: ModelStorage,
      resource: Resource,
      execution_context: ExecutionContext,
      **kwargs: Any,
  ) -> "LogisticRegressionClassifier":
      """Loads trained component (see parent class for full docstring)."""
      try:
          with model_storage.read_from(resource) as model_dir:
              classifier = joblib.load(
                  model_dir / f"{resource.name}.joblib"
              )
              component = cls(
                  config,
                  execution_context.node_name,
                  model_storage,
                  resource,
              )
              component.clf = classifier
              return component
      except ValueError:
          logger.debug(
              f"Failed to load {cls.__class__.__name__} from model storage. Resource "
              f"'{resource.name}' doesn't exist."
          )
          return cls.create(
              config, model_storage, resource, execution_context
          )
  
imports: import logging
  from typing import Any, Text, Dict, List, Type, Tuple
  import joblib
  from scipy.sparse import hstack, vstack, csr_matrix
  from sklearn.linear_model import LogisticRegression
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe
  from rasa.engine.graph import ExecutionContext, GraphComponent
  from rasa.nlu.classifiers import LABEL_RANKING_LENGTH
  from rasa.nlu.featurizers.featurizer import Featurizer
  from rasa.nlu.classifiers.classifier import IntentClassifier
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.constants import TEXT, INTENT
  from rasa.utils.tensorflow.constants import RANKING_LENGTH
label_desc: Use image node_id 11 for calling the LogisticRegressionClassifier obj's underlying member method code with example usage: obj.load(cls, config, model_storage, resource, execution_context) and returns: component, cls