original_docstring:  Get logged model from run id
  
      :param run_id: mlflow run id of the logged model
  
      :return: logged model py dict
      
docstring: Get logged model from run id
docstring_tokens: Get logged model from run id
code: def _get_logged_model(run_id: str) -> dict:
      """ Get logged model from run id
  
      :param run_id: mlflow run id of the logged model
  
      :return: logged model py dict
      """
      _run = mlflow.get_run(run_id)
      # eval is needed, otherwise type is str
      log_model_history = eval(_run.data.to_dictionary()["tags"]["mlflow.log-model.history"])
      for logged_model in log_model_history:
          if run_id == logged_model['run_id']:
              return logged_model
  
      raise Exception(f"Could not find model with run_id={run_id}")
code_tokens: def _get_logged_model ( run_id : str ) -> dict : _run = mlflow . get_run ( run_id ) log_model_history = eval ( _run . data . to_dictionary ( ) [ "tags" ] [ "mlflow.log-model.history" ] ) for logged_model in log_model_history : if run_id == logged_model [ 'run_id' ] : return logged_model raise Exception ( f"Could not find model with run_id={run_id}" )
short_docstring: Get logged model from run id
short_docstring_tokens: Get logged model from run id
comment: """ Get logged model from run id
  
      :param run_id: mlflow run id of the logged model
  
      :return: logged model py dict
      """$SEP$# eval is needed, otherwise type is str