parameters: (self, cb_params)
docstring: Collect eval lineage data, the detail refer to lineage_pb2.EvaluationLineage.
docstring_summary: Collect eval lineage data, the detail refer to lineage_pb2.EvaluationLineage.
docstring_tokens: Collect eval lineage data the detail refer to lineage_pb2 . EvaluationLineage .
function: def _collect_eval_lineage(self, cb_params):
          """Collect eval lineage data, the detail refer to lineage_pb2.EvaluationLineage."""
          if not self._collect_specified_data.get('collect_eval_lineage'):
              return
          eval_lineage = dict()
          try:
              eval_lineage[LineageMetadata.metrics] = json.dumps(cb_params.metrics)
          except TypeError as exc:
              logger.warning("Summary cannot collect the type of metrics, currently support type: dict, list, tuple, "
                             "str, int, float, bool and None. %s.", str(exc))
          self._parse_dataset(cb_params, eval_lineage)
  
          eval_lineage_message = self._package_eval_lineage_message(eval_lineage)
          self._record.add_value(PluginEnum.EVAL_LINEAGE.value, 'eval_lineage', eval_lineage_message)
function_tokens: def _collect_eval_lineage ( self , cb_params ) : if not self . _collect_specified_data . get ( 'collect_eval_lineage' ) : return eval_lineage = dict ( ) try : eval_lineage [ LineageMetadata . metrics ] = json . dumps ( cb_params . metrics ) except TypeError as exc : logger . warning ( "Summary cannot collect the type of metrics, currently support type: dict, list, tuple, " "str, int, float, bool and None. %s." , str ( exc ) ) self . _parse_dataset ( cb_params , eval_lineage ) eval_lineage_message = self . _package_eval_lineage_message ( eval_lineage ) self . _record . add_value ( PluginEnum . EVAL_LINEAGE . value , 'eval_lineage' , eval_lineage_message )