def filter_predictions(predictions, max_regions, threshold):
    results = [entry for entry in predictions if entry["prob"] >= threshold]
    results = results[0:max_regions]
    return results
Filters predictions down to just those that are above or equal to a certain threshold, with
dataset/ETHPy150Open BradNeuberg/cloudless/src/cloudless/inference/localization.py/filter_predictions