def _update_params(self, params: dict):
    'Update experiment params files with the specified values.'
    from benedict import benedict
    from dvc.utils.serialize import MODIFIERS
    logger.debug("Using experiment params '%s'", params)
    for params_fname in params:
        path = (PathInfo(self.repo.root_dir) / params_fname)
        suffix = path.suffix.lower()
        modify_data = MODIFIERS[suffix]
        with modify_data(path, tree=self.repo.tree) as data:
            benedict(data).merge(params[params_fname], overwrite=True)
    self.scm.add(list(params.keys()))
Update experiment params files with the specified values.
def _update_params(self, params: dict):
    
    from benedict import benedict
    from dvc.utils.serialize import MODIFIERS
    logger.debug("Using experiment params '%s'", params)
    for params_fname in params:
        path = (PathInfo(self.repo.root_dir) / params_fname)
        suffix = path.suffix.lower()
        modify_data = MODIFIERS[suffix]
        with modify_data(path, tree=self.repo.tree) as data:
            benedict(data).merge(params[params_fname], overwrite=True)
    self.scm.add(list(params.keys()))