Skip to main content
Skill lesson previews

Deep Learning Fundamentals

Deep Learning Fundamentals is the skill of applying modern best practices to deliver consistent results in ai ml contexts.

Lesson previews

Backprop Is Credit Assignment

Backpropagation is how the network turns one error number into weight-by-weight update directions. Training starts with a forward pass. The network predicts, the loss function compares prediction with label, and the optimizer needs to know which parameters to change. Backpropagation supplies that information. Loss creates the signal The loss is the number being minimized. If the loss does not match the real task, the network can improve the metric while becoming less useful. The chain rule moves blame backward Backprop computes gradients layer by layer from output toward input. Each weight receives a local update direction based on how it…

5 min
Coach Embeddings Without Mystique

Cam C Junior analyst 1 Ground 2 Mechanism 3 Caveat Embedding mystique 20 sec Support handoff Cam needs to explain why similar tickets are retrieved by vector search without claiming the model understands customers like a person. Overclaiming embeddings creates trust problems when retrieval fails. vector dense representation near means task similarity

5 min
Commit to a Model Critique

Deep Learning Model Critique Schedule and script a 30-minute critique for one model. Run a focused critique of a deep learning model before launch or before the next major experiment. Use this when a model has a promising score but the evidence around labels, split, baseline, errors, or monitoring is still thin. Critique target: _____. Label risk to inspect: _____. Split rule to verify: _____. Baseline to compare: _____. Error slice to review: _____. Monitor or rollback signal: _____. Owner and date: _____. In 3 days, confirm whether the critique happened and which one assumption changed. Labels Pick one class…

5 min
Commit to an Experiment Card

Create a deep learning experiment card for a prototype you might actually run this week. A model idea where you need to compare a deep learning approach against a baseline using a clean validation split. Decision: _____. Baseline to beat: _____. Dataset and split rule: _____. Primary metric: _____. Guardrail metric: _____. Stop rule: _____. Next action if it fails: _____. In 3 days, review whether you wrote the card before running the experiment and whether the run changed a decision. A vision prototype using transfer learning where you must decide whether the frozen baseline is good enough to fine-tune.…

5 min
Convolution Encodes Locality

A convolutional layer is not just another layer. It bakes image structure into the model. Images have local structure: nearby pixels form edges, textures, corners, and small parts. CNNs exploit that structure with filters that scan local windows across the image. Local receptive fields A unit looks at a small patch, not the whole image. That keeps the model focused on spatial neighborhoods where image evidence actually lives. Parameter sharing The same filter is reused across positions. If a yellow spot matters on the left side of a leaf, the same spot likely matters on the right side too. Hierarchy…

5 min
Debug a Stalled Run

Stalled at chance Sam's classifier has run for three hours. Training accuracy is flat, validation is flat, and the team wants an architecture rewrite. A stalled run is usually a signal-path problem until proven otherwise. Debug order Batch -> tiny overfit -> loss/labels -> gradients/LR -> architecture Move from the easiest falsifiable checks to deeper changes. Each step proves that the next part of training can work. Rewrite Feels productive, often hides the real fault. Architecture changes happen after the signal path is clean. If the model cannot overfit a tiny clean batch, the full run is not an architecture…

5 min
Design a Small Image Classifier

Small vision project The team has 2,400 shelf images, five stores, and one week. A model debate starts before anyone checks whether the validation split leaks near-duplicate shelves. In small-data vision, split quality and staged transfer learning often matter more than architectural novelty. Staged transfer Audit -> frozen base -> augment -> fine-tune selectively Use transfer learning to buy a fast baseline, then increase flexibility only when validation evidence asks for it. Scratch CNN Maximum flexibility, maximum small-data risk. Each stage answers a different uncertainty. Do not spend small labels learning generic edges and textures from scratch unless transfer evidence…

5 min
Explain Depth to a PM

Jordan J Product manager 1 Clarify 2 Teach 3 Commit The ask 20 sec Launch pressure Jordan wants to add more layers before beta because the current metric feels too close to the acceptance line. The conversation can either become opinion trading or evidence-based model design. 4 days to beta failure modes: underfit or overfit validation curve needed

5 min
Fine-Tune in Stages

A pretrained image base reaches 84 percent validation accuracy with a newly trained head. Errors cluster around domain-specific packaging details. You have 3,200 labeled images. Freeze first, train the head, review errors, then selectively unfreeze upper layers with a smaller learning rate. Unfreezing the entire base at the first sign of weakness can overwrite reusable features and overfit small domain data. Freeze the base Set pretrained base layers non-trainable and attach a task-specific classifier head. This reuses general visual features while learning the new decision boundary. Train the head Train only the new top layers until validation stops improving. The…

5 min
Forward Pass by Hand

Input x = [2, -1]. Hidden neuron h1 has weights [1.0, 0.5], bias 0.0. Hidden neuron h2 has weights [-0.5, 1.0], bias 0.2. Use ReLU, then output score y = 0.4h1 + 0.8h2 + 0.5. Forward pass = weighted sum -> bias -> activation -> next layer score. Do not apply ReLU to the output score unless the architecture says the output layer uses ReLU. Activations are layer choices, not automatic decoration everywhere. Hidden h1 pre-activation h1_raw = 1.02 + 0.5(-1) + 0.0 = 1.5 The neuron combines inputs with weights, then adds bias. Hidden h1 activation h1 = ReLU(1.5)…

5 min
Generalization Beats Training Accuracy

A deep model that fits the training set perfectly may be less useful than a smaller model that generalizes. Generalization is the ability to perform on examples the model did not train on. Deep networks need this discipline because their capacity can be large enough to memorize noise. Watch the gap If training loss falls while validation loss rises, the model is learning details that do not transfer. The train-validation gap is a practical overfitting detector. Regularization adds friction L2 regularization penalizes large weights, dropout makes units less co-dependent, augmentation expands the effective data variety, and early stopping keeps the…

5 min
Hidden Layers Learn Representations

A hidden layer is a feature builder that learns from loss, not a mysterious extra box. A basic neural network takes an input vector, passes it through hidden layers, and produces an output. Each hidden layer applies weights, a bias, and an activation function. The result is a new representation: not the original columns, but learned signals built from them. Raw inputs are rarely enough A linear model needs the useful combinations to be present in the input. If the pattern depends on usage drop x tenure x ticket severity, someone must create that cross or the model may miss…

5 min
Match Output, Loss, and Labels

The product-photo task is multi-label: several tags can be true simultaneously. The output and loss need to let each label be predicted independently.

5 min
Output Layer Quick Reference

Softmax or sigmoid? Most common fork Ask: can two labels be true for one example? Continuous value prediction, like house price or temperature. Name the head pattern. Regression head Often a linear output with a regression loss such as MSE or MAE, depending on the objective. The labels are zero and one, so mean squared error should be fine for classification. You are reviewing a binary classifier implementation. Your line For classification, use a loss that matches probabilities, such as binary cross-entropy for a sigmoid binary output. Numeric label storage does not define the learning objective. The response separates data…

4 min
Pick the First Model Move

Noor has limited labels, a familiar image domain, and a short deadline. The strongest first move is a frozen pretrained base with a new classifier head, compared against a simple non-deep or shallow baseline.

5 min
Productionize the Model Safely

Offline is not live The model passed historical validation. Monday's traffic will include missing events, new campaigns, changed user behavior, and support tickets. Deployment risk lives in the gap between offline evidence and live conditions. Control layers Slice -> monitor -> review -> rollback Productionizing a model means deciding how it will fail visibly and recoverably. Full rollout Treats offline score as operational proof. The team can learn from live traffic without making failure expensive. If you cannot observe or reverse failure, the rollout is too broad. 01 Scope 02 Signals 03 Controls Rollout size The offline metric beat the…

5 min
Read the Loss Curve

The curve says the model is learning the training set faster than it is learning transferable structure. The next move should preserve the best validation checkpoint and add generalization pressure.

5 min
Set the Threshold by Cost

The urgent-case model should not inherit 0.50 by default. The decision depends on the cost of missing urgent cases versus sending extra cases to review.

5 min
Sort Failure Modes

Sort each symptom into the most likely failure mode. Data leakage Overfitting Underfitting Drift Label noise Validation contains near-duplicate images from the same camera burst as training A feature is created after the decision time but used during training Training accuracy climbs to 99 percent while validation falls The model nails training examples but fails on fresh stores Training and validation accuracy are both stuck near chance A tiny model cannot fit even a clean subset Live inputs shift after a new marketing campaign changes user behavior A production feature becomes missing for 40 percent of requests Two reviewers disagree…

5 min
Sort Regularization, Optimization, Architecture

Place each move in the family it primarily belongs to. Optimization Regularization Architecture Data Lower the learning rate Switch from SGD to Adam Clip exploding gradients Add weight decay Add dropout before the classifier head Use early stopping on validation loss Replace plain blocks with residual blocks Use convolution instead of dense layers for images Add realistic image augmentation Audit noisy labels in the failing class

5 min
Sort the Training Signals

Sort each term by its role in the training loop. Data Parameters Activations Gradients Metrics Input batch x Ground-truth label y Layer weight matrix Bias term ReLU output from hidden layer Raw logits before final probability conversion Gradient of loss with respect to weights Gradient norm used for clipping Validation accuracy F1 score reported in review

4 min
Talk Risk Before Launch

Dana D Legal lead 1 Map 2 Measure 3 Manage Safety question 20 sec Launch review Dana asks whether the document classifier is safe enough to route customer documents automatically. A single model score cannot answer a risk-management question. 92% F1 is not the whole answer high-risk classes need review owner for rollback

5 min
Threshold From a Confusion Matrix

Threshold 0.50 gives FP=20 and FN=30. Threshold 0.30 gives FP=55 and FN=10. A false positive costs 1 review unit. A false negative costs 5 fraud-loss units. Threshold choice = confusion matrix counts x error costs, checked against operational capacity. Accuracy can prefer the threshold with fewer total mistakes while hiding that the expensive mistake is still too frequent. Cost at threshold 0.50 FP cost = 201 = 20. FN cost = 305 = 150. Total = 170. The false negatives dominate because missed fraud is expensive. Cost at threshold 0.30 FP cost = 551 = 55. FN cost = 105…

5 min
Training Troubleshooter

Loss became NaN after a few hundred steps. A teammate wants to rewrite the model. First line Check input values, loss inputs, learning rate, and gradient norms before changing architecture. NaN is often a numerical or update-size issue, not immediate proof the architecture is wrong. It tests the signal path and update stability first. Slow learning: learning rate or capacity? First fork If a tiny clean batch cannot learn, debug optimization or data before capacity. Training accuracy high, validation weak. Name the treatment family. Generalization response Use early stopping, regularization, augmentation, simpler capacity, or better data. Do not celebrate the…

5 min

Browse by role, format or category

Put it into practice

Build your next learning habit.

Contact us