Skip to content

Instantly share code, notes, and snippets.

@yrevar
yrevar / imagenet1000_clsidx_to_labels.txt
Last active May 4, 2025 13:55
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@ChrisBeaumont
ChrisBeaumont / wheel.py
Created February 17, 2016 01:35
wheel of infinite fortune
import os
import pickle
from collections import defaultdict
from random import choice
import requests
from soupy import Soupy, Q
ROM = open('wheel.nes', 'rb').read()
CLUESET_PATH = 'clues.pickle'