Utility Functions

seeq.addons.azureml._config.get(section: str, variable: str, fallback=None)[source]

Retrieves the value of named option from the configuration_parser. If the configuration_parser is not set, a fallback value can be returned.

Parameters
  • section (str) – Name of the section in the configuration file to retrieve the value from.

  • variable (str) – Name of the option whose value will be retrieved.

  • fallback (object) – Object to be retrieved if configuration_parser is not set.

Returns

value – A string value for the named option.

Return type

str

seeq.addons.azureml._config.validate_configuration_file(configfile=None)[source]

Reads a configuration file and sets the global variable configuration_parser

Parameters

configfile (str or Path) – Full path to the configuration file. If None, the parser will to read the file ~/.seeq.aml_config.ini provided it exists.

Returns

-

Return type

None

seeq.addons.azureml._copy.copy_notebook(des_folder=None, src_folder=None, *, overwrite_folder=False, overwrite_contents=False)[source]

Copies the files on the src_folder to a des_folder in the current working directory.

Parameters
  • des_folder (str) – The destination folder. If None, it will be copied to a ‘deployment_notebook’ folder in the current working directory.

  • src_folder (str) – Name of the folder that contains the documentation to be copied. If None, it defaults to ‘deployment_notebook’ directory.

  • overwrite_folder (bool) – If True, any existing files in the specified folder will be deleted before the documentation is copied in.

  • overwrite_contents (bool) – If True, files in the specified folder will be overwritten if necessary when the documentation is copied in.

Returns

-

Return type

None

seeq.addons.azureml._copy.validate_argument_types(expected_types)[source]

Validates the argument types

Parameters

expected_types (list) – List of tuples with the arguments to be validated. Each tuple must have the form (value, name, type).

Returns

validated_types – A dictionary with argument names as keys and argument values as values.

Return type

dict