class_docstr: Run data (metrics and parameters).
class_docstr_tok: ["Run","data","(","metrics","and","parameters",")","."]
code: def to_proto(self):
      run_data = ProtoRunData()
      run_data.metrics.extend([m.to_proto() for m in self._metric_objs])
      run_data.params.extend(
          [
              ProtoParam(key=key, value=val)
              for key, val in self.params.items()
          ]
      )
      run_data.tags.extend(
          [
              ProtoRunTag(key=key, value=val)
              for key, val in self.tags.items()
          ]
      )
      return run_data
  
file_path: mlflow/mlflow/entities/run_data.py
imports: from mlflow.entities._mlflow_object import _MLflowObject
  from mlflow.entities.metric import Metric
  from mlflow.entities.param import Param
  from mlflow.entities.run_tag import RunTag
  from mlflow.protos.service_pb2 import Param
  from mlflow.protos.service_pb2 import RunData
  from mlflow.protos.service_pb2 import RunTag
label_desc: Use image node_id 8 for calling the RunData obj's underlying member method code with example usage: obj.to_proto() and returns: run_data