submit_azureml_pytest_4.py 516 B

12345678910111213141516
  1. def create_experiment(workspace, experiment_name):
  2. """
  3. AzureML requires an experiment as a container of trials.
  4. This will either create a new experiment or use an
  5. existing one.
  6. Args:
  7. workspace (str) : name of AzureML workspace
  8. experiment_name (str) : AzureML experiment name
  9. Return:
  10. exp - AzureML experiment
  11. """
  12. logger.debug('create: experiment_name {}'.format(experiment_name))
  13. exp = Experiment(workspace=workspace, name=experiment_name)
  14. return(exp)