Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clusters = {}
- for pos, fire in enumerate(fires):
- label = labels[pos]
- if label == -1:
- continue
- if label not in clusters:
- clusters[label] = []
- clusters[label].append(fire)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement