Dictionaries Flashcards
1
Q
create dictionary {label:number of objects with that label}
A
from collections import Counter
count = Counter(labels)
C - Python & ML > Dictionaries > Flashcards
create dictionary {label:number of objects with that label}
from collections import Counter
count = Counter(labels)