Tags help you quickly locate and organize data files. You can use tag names when searching for input files in an execution or any data within outputs.
Add tags
Web application
Add tags in the Data tab of the project, or in executions outputs.
Programmatically
You can save tags to your outputs by saving an additional JSON file *.metadata.json
for each of your execution’s output files.
import valohai
import json
metadata = {
"valohai.tags": ["production", "lemonade"]
}
save_path = '/valohai/outputs/model.h5'
model.save(save_path)
metadata_path = '/valohai/outputs/model.h5.metadata.json'
with open(metadata_path, 'w') as outfile:
json.dump(metadata, outfile)
Find using tags
Once a file has been tagged you can easily find it in the user interface.