def get_feature_directory_name(settings_dict):
    """Get the directory name from the supplied parameters and features."""
    dir_string = "%s_%d_%d_%d_%d" % (
        settings_dict["feature"],
        settings_dict["fft_sample_rate"],
        settings_dict["stft_window_length"],
        settings_dict["stft_hop_length"],
        settings_dict["frequency_bins"],
    )
    if settings_dict["feature"] == "cqt":
        dir_string += "_%d" % settings_dict["cqt_min_frequency"]
    if settings_dict["feature"] == "mfcc":
        dir_string += "_%d" % settings_dict["mfc_coefficients"]
    return dir_string