keep_matched_keys(dict_to_modify, model_keys)
Drops only the keys of a dict that do not have the same name as the keys in a source dictionnary. Return dictionnary containing the rest.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dict_to_modify |
TYPE |
DESCRIPTION. |
required |
source_dict |
TYPE |
DESCRIPTION. |
required |
Returns:
Type | Description |
---|---|
modified_dict (TYPE) |
DESCRIPTION. |