tff.simulation.datasets.stackoverflow.load_tag_counts

Loads the tag counts for the Stack Overflow dataset.

cache_dir (Optional) directory to cache the downloaded file. If None, caches in Keras' default cache directory.

A collections.OrderedDict where the keys are string tags, and the values are the counts of unique users who have at least one example in the training set containing with that tag. The dictionary items are in decreasing order of tag frequency.