def create_params_key(method, params):
    """Creates unique key based on hyperparameters.

    Parameters
    ----------
    method : str
        Name of method

    params : dict
        Dictionary of parameters

    Returns
    -------
    key : str
        Unique key
    """
    if method in ['lasso', 'ridge']:
        key = '_alpha_' + str(params['alpha'])
    else:
        key = '_es_'     + str(int(params['early_stopping'])) + \
              '_vm_'     + str(int(params['muting'])) + \
              '_alpha_'  + str(params['alpha']) + \
              '_select_' + str(params['selector'])
    return key