IBMExperimentService.file_upload

IBMExperimentService.file_upload(experiment_id, file_name, file_data, json_encoder=<class 'json.encoder.JSONEncoder'>)[source]

Uploads a data file to the DB

Parameters:
  • experiment_id (str) – The experiment the data file belongs to

  • file_name (str) – The expected filename of the data file

  • file_data (Union[Dict, str]) – The dictionary of data to save, or JSON serialization of it

  • json_encoder (Type[JSONEncoder]) – Custom encoder to use to encode the experiment.

Additional info:

The filename is expected to end with “.json”, “.yaml”, or “.zip”, otherwise “.json” will be added, and the data itself should be either a dictionary or a JSON serialization with the default encoder.