Prepare the data
Choose a licensed small image dataset and split related images together before augmentation.
Learn local patterns. Test unseen images.
Convolutional networks learn spatial filters over images. A compact network makes feature maps, pooling and regularisation easier to inspect than a large pretrained architecture.
Learning concept · Not a validated service
Convolutional networks learn spatial filters over images. A compact network makes feature maps, pooling and regularisation easier to inspect than a large pretrained architecture.
A possible application for computer-vision classes: Help computer-vision students understand how spatial filters differ from flattened features. This extension is not delivered by the supplied starter.
Choose a licensed small image dataset and split related images together before augmentation.
Train a compact CNN with convolution, activation, pooling and a classification head.
Compare per-class errors with a simple baseline and inspect shifts in lighting or orientation.
Display predictions and selected feature maps with clear dataset limits.
The supplied starter loads scikit-learn’s small handwritten-digits dataset, splits it by class, trains a 300-tree RandomForestClassifier on flattened pixels and plots a confusion matrix.
digits = load_digits()
X_train, X_test, y_train, y_test = train_test_split(
digits.data, digits.target, test_size=0.25,
random_state=42, stratify=digits.target,
)
model = RandomForestClassifier(n_estimators=300, random_state=42)
model.fit(X_train, y_train)
predictions = model.predict(X_test)
ConfusionMatrixDisplay.from_predictions(y_test, predictions, cmap="Blues")The source uses a random forest on flattened digits and contains no convolutional layers. These are 8×8 grayscale digit images, not MNIST or general photographs. Results on this dataset do not validate another vision task or a field-ready image service.
Proposed extension: Help computer-vision students understand how spatial filters differ from flattened features.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.