Reproducing Experiments using Provenance Files

‼ This feature is still under development

With workflow streamlined by yProv4ML, it is trivial to guarantee reproducibility of experiments even just sharing a single provenance file. To guarantee the necessary amount of information are present in the prov.json file however, some calls to the library have to be executed.

def log_execution_command(full_command_str : Optional[str] = None, path : Optional[str] = None): ...

Logs the execution command for it to be retrieved by the reproduction script later. If omitted, the current interpreter and sys.argv are used.

def log_source_code(use_git : bool = False): ...

Requests logging of the source code at end_run. With use_git=True the repository link and commit hash are logged as a parameter. This could be a single python file (e.g. main.py), a repository link (if the path is not specified in the arguments), or an entire directory of source files. In case the source code is not on github, the source files are all copied inside the artifacts directory, and the path logged inside the provenance file will reference whis copy.

⚠ Currently, the order of logging of inputs and outputs does matter, which means that concurrent executions will have to log information in order, for a run to be considered reproducible.