create_crossval_hyperdrive_config

health_azure.create_crossval_hyperdrive_config(num_splits, cross_val_index_arg_name='crossval_index', metric_name='val/loss')[source]

Creates an Azure ML HyperDriveConfig object for running cross validation. Note: this config expects a metric named <metric_name> to be logged in your training script([see here]( https://docs.microsoft.com/en-us/azure/machine-learning/how-to-tune-hyperparameters#log-metrics-for-hyperparameter-tuning))

Parameters
  • num_splits (int) – The number of splits for k-fold cross validation

  • cross_val_index_arg_name (str) – The name of the commandline argument that each of the child runs gets, to indicate which split they should work on.

  • metric_name (str) – The name of the metric that the HyperDriveConfig will compare runs by. Please note that it is your responsibility to make sure a metric with this name is logged to the Run in your training script

Return type

HyperDriveConfig

Returns

an Azure ML HyperDriveConfig object