(hyperparams, m)
return {var: val[m] if isinstance(val, list) else val
            for var, val in hyperparams.items()}
Pull the relevant hyperparameters corresponding to the specified
    condition, and return a new hyperparameter dictionary.
Pull the relevant hyperparameters corresponding to the specified
    condition, and return a new hyperparameter dictionary.
Pull the relevant hyperparameters corresponding to the specified condition and return a new hyperparameter dictionary .
def extract_condition(hyperparams, m):
    """
    Pull the relevant hyperparameters corresponding to the specified
    condition, and return a new hyperparameter dictionary.
    """
    return {var: val[m] if isinstance(val, list) else val
            for var, val in hyperparams.items()}
def extract_condition ( hyperparams , m ) : return { var : val [ m ] if isinstance ( val , list ) else val for var , val in hyperparams . items ( ) }