ITAI 1370 — AI History, Theory & Platforms

End-of-Year Portfolio — Cesar Zaldivar | May 2026

Module 9 — Week 9

Lab L09: Computer Vision Classifier

Assignment TypeLab — Hands-On
TopicBuilding an image classifier using Google Teachable Machine
ToolGoogle Teachable Machine
Date SubmittedMarch 2026

Objective

Gain hands-on experience with basic computer vision by building a two-class image classifier to detect faces vs. non-faces, using Google’s Teachable Machine platform.

Dataset

ClassImagesContent
Face19Photos of two different dogs
No Face20Images of electrical parts

Training Configuration

ParameterValue
Epochs100
Batch Size16
Learning Rate0.001
Train / Test Split85% training / 15% test
Computer vision classifier pipeline diagram

Results

MetricResult
Accuracy per Class1.00 (100%)
Final Test Loss0.000093
GeneralizationStrong separation between classes for this dataset

Key Concepts Covered

TermDefinition
EpochOne complete pass through the entire training dataset
UnderfittingModel performs poorly because it has not captured the patterns in training data
OverfittingModel learns the training data too closely and does not generalize to new data
Training Samples85% of images used to train the model
Test Samples15% held out to evaluate performance on never-before-seen images

What I Learned

Building a classifier from scratch — even a simple one — made abstract machine learning concepts concrete and intuitive. I understood firsthand how training parameters like epochs, batch size, and learning rate affect model performance.

The perfect accuracy result (1.00) was initially exciting, but I quickly learned to be cautious: with only 39 total images, a perfect score more likely reflects the model memorizing the dataset than genuinely learning to generalize. This distinction between training accuracy and real-world generalization is one of the most important lessons in all of machine learning. A model that scores 100% on training data but fails on new data is worse than a model with 90% training accuracy that handles novel inputs well.

Citation

Google. “Teachable Machine.” Google, n.d., https://teachablemachine.withgoogle.com/.

};