pipeline_from_config

pipeline_from_config(config: Mapping[str, Any], discard_seed: bool = False, **kwargs) PipelineResult[source]

使用配置字典运行管道。

Parameters:
  • config (Mapping[str, Any]) – 实验配置字典。应该包含一个‘metadata’和一个‘pipeline’键。metadata条目传递给pipeline()的metadata参数。‘pipeline’条目通过splat传递给pipeline()

  • discard_seed (bool) – 是否丢弃管道的随机种子,如果存在。

  • kwargs – 额外的kwargs转发到pipeline()

Returns:

在给定配置上运行管道的结果。

Return type:

PipelineResult