This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from keras.models import Sequential | |
from keras.layers.core import Activation, Dense | |
from keras.optimizers import SGD | |
# Trains a neural net that recognizes the digit displayed by a 7-segment LED: | |
# "Lit segments" are indexed as: | |
# -- 0 -- | |
# | | | |
# 1 2 |