def make_f1_scores(all_models, all_spectra, all_keys):
    """
    Makes a dict of f1 scores for some set of independent
    variables in a dataset

    Inputs
        all_models : dict
            Dictionary containing all models used to create F1 scores
        all_spectra : narray
            Numpy array of spectra
        all_keys : Pandas DataFrame
            Numpy array of one-hot spectral keys corresponding to all_spectra

    Outputs
        f1_scores : dict
            Dictionary containing F1 scores and model_id
    """

    # initialize empty scores
    f1_scores = {}
    for key in all_models:
        f1_scores[key] = []

    # initialize empty scores
    for key in f1_scores:
        f1_error_tmp = all_models[key].f1_error(
            all_spectra,
            all_keys)
        f1_score_tmp = 1.0 - f1_error_tmp
        f1_scores[key].append(f1_score_tmp)

    return f1_scores