Reproducible Example
‼
This feature is still under development. Currently at the [yProv4REP](https://github.com/HPCI-Lab/yProv4Rep) Repository
Example:
import yprov4ml
yprov4ml.start_run(
prov_user_namespace="www.example.org",
experiment_name="reproducible_example",
provenance_save_dir="prov",
save_after_n_logs=100,
collect_all_processes=True,
)
yprov4ml.log_source_code()
yprov4ml.log_execution_command()
def square(x):
return x**2
for i in range(1, 10):
yprov4ml.log_param(f"input_{i}", i, is_input_to="square")
o = square(i)
yprov4ml.log_param(f"output_{i}", o, is_output_to="square")
yprov4ml.end_run(create_graph=True, create_svg=True)