Revisions

This commit is contained in:
Chris Proctor
2026-06-08 15:15:52 -04:00
parent 1c99ca8bd3
commit 49c4e43f45
12 changed files with 209 additions and 34 deletions

View File

@@ -8,11 +8,11 @@ def show_digit(pixels):
print(" ".join("#" if p > 0.5 else "." for p in row))
def explore(X_train, y_train):
def explore(X_train, y_train, n=3):
print("=" * 60)
print("SAMPLE DIGITS")
print("=" * 60)
for i in range(3):
for i in range(n):
print(f"\nLabel: {y_train[i]}")
show_digit(X_train[i])