Skip to content

Glossary: Vision and Image Generation

defaultdict

Also written: collections.defaultdict

A Python dict that creates a default value, such as an empty list, the first time you use a new key. `eval.py` uses it to group case ids by result.

Where the book teaches it

Related terms

Counter