IBMExperimentService.create_analysis_results#

IBMExperimentService.create_analysis_results(data, blocking=True, max_workers=100, json_encoder=<class 'json.encoder.JSONEncoder'>)[source]#

Create multiple analysis results in the database using asynchronous calls.

If you choose blocking==True, the method will run until all the save threads terminated. To improve running time, multithreading is used.

If blocking==False it is up to the user to verify all the threads finished; block_for_save() can be called to ensure all threads finish. save_status() returns the information on the status of the threads.

Parameters:
  • data (Union[List[AnalysisResultData], DataFrame]) – The data to save, either as a list of AnalysisResultData or as a pandas DataFrame.

  • blocking (bool) – Whether to wait for all the save threads to finish before returning control

  • max_workers (int) – Maximum number of worker threads to write to the server.

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

Raises:
  • IBMExperimentEntryExists – If the analysis result already exits.

  • IBMApiError – If the request to the server failed.