import itertools


def get_hyperparams_combinations(hyperparams):
    """Get list of hyperparmeter (dict) combinations."""
    # transforms tuning hyperparams to a list of dict params for each option
    return [
        {k:v for k,v in zip(hyperparams.keys(), hypms)}
         for hypms
         in itertools.product(*[vals for vals in hyperparams.values()])
    ]