Parameters.check_params#

static Parameters.check_params(parameters, expected, name)[source]#

Checks if parameters contain expected.

Parameters:
  • parameters (dict) – Dictionary containing parameters.

  • expected (iterable) – List of the expected parameters, keys in the dictionary.

  • name (str) – Name of the parameter group being checked.

Returns:

params – Dictionary containing only the expected parameters.

Return type:

dict

Raises: