Experiment Tag module

This module provides facilities to define new tags for use in experiments.

See experiment_tag decorator.

experiment_tag(loader=<function _mapping_loader>, representer=<function _mapping_representer>, name=None, pattern=None)[исходный код]

Use this tag to mark classes invoked from experiment.yml

Note: use experiment_tag(), not just experiment_tag

  • loader – a loader (deserializer) for the specified class to pass to YAML loader

  • representer – a representer (serializer) for the class to pass to YAML loader

  • name – a tag name to use, will use classname if absent

  • pattern – a regexp pattern to use when extracting from scalar strings (see also yaml.add_implicit_resolver)


wrapped class