Skip to content

Instantly share code, notes, and snippets.

View pkivolowitz's full-sized avatar

Prof. Perry Kivolowitz (ret) pkivolowitz

View GitHub Profile
@lobrien
lobrien / led_segs.py
Last active May 21, 2025 22:57
Keras neural net that recognizes number in a 7-segment display
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