
Introduction to the Course
Deep Learning in the context of AI and Machine Learning
Deep Learning: Getting Rules from Data + Answers
The human brain: an inspiration for many of today's AI "godfathers"
Biological Neuron Action Potential (Signal Propagation in "Real" Neurons)
Activation Function of an Artificial Neuron
Comparison of a Biological Neural Network and a Simple Artificial Neural Network
Explore Hubel and Wiesel's work on the cat visual cortex, including orientation and spatial frequency columns and receptive fields, and its influence on convolutional neural networks.
Explain how neurons receive signals via dendrites, integrate at the axon hillock, and fire an action potential to transmit, mirroring how artificial neurons sum inputs and decide outputs.
We compare the human brain's 16 billion neurons with about 7000 connections each, totaling 112 trillion connections, to simple artificial neural networks, illustrating the vast complexity gap.
Analyze how GPT three with 175 billion parameters and trillion-parameter models like Pangas illustrate exponential growth in AI complexity, suggesting future AI could rival human cognitive capacity.
Illustrate the concept of loss in a neural network by showing how inputs pass through hidden neurons to produce an output, with predicted 0.1, actual 1, and squared-difference loss 0.81.
Back propagation adjusts a neural network's behavior using feedback from prediction errors. We refine the initial weights w1 and w2 through error guidance.
Follow back propagation in a neural network, from input through a hidden layer to output, evaluate prediction error, and apply gradients to adjust weights.
Explore gradient descent and backpropagation in training neural networks, updating weights to minimize error and converge to the lowest point on the error surface.
Explore how overfitting makes a model memorize training data and fail to generalize to unseen data, while underfitting leaves underlying patterns uncaptured and performance weak.
Visualize gradient descent navigating a complex error surface to reach the minimum error. Explain how local and global minima guide parameter adjustments toward the global minimum for neural network performance.
Apply early stopping as a regularization technique to prevent overfitting by halting training when validation loss reaches its minimum, improving generalization and robustness of neural networks.
Break down the confusion matrix with a cat-identification example. Define true positives, true negatives, false positives, and false negatives.
Calculate accuracy as (true positives + true negatives) / total, demonstrated with true positives 161 and true negatives 129 out of 320, illustrating overall model performance.
Explore precision in classification using the confusion matrix, focusing on true positives and false positives, and its critical role in high-stakes predictions like cancer diagnosis.
Understand recall, or sensitivity, as the model's ability to identify positive instances, using TP/(TP+FN) with true positives and false negatives, crucial in medical diagnoses.
Explore how recall, or sensitivity, gauges a model's ability to identify positive cases. Pair it with specificity to reduce false positives in fraud detection and disease diagnostics.
Use the F1 score to balance precision and recall, especially with imbalanced data. Support medical diagnostics and fraud detection by balancing positives and limiting false alarms.
Compare precision and recall using a sports scouting analogy. Use the F1 score to balance false positives and false negatives, especially in imbalanced datasets.
Explore neural networks through an interactive TensorFlow playground that demonstrates why hidden layers and non-linear activation are essential, and how feature engineering shapes learning.
Explore the course code repository on GitHub, open examples in Google Colab, switch runtime to GPU, and run code cells or all cells to align with the shared environment.
Explore a practical backpropagation example in a neural network using sigmoid activation, weights, and dot products. Track mean squared error, learning rate, epochs, and loss history to show convergence.
Convolutional neural networks achieve higher accuracy with about one-tenth of the parameters of fully connected networks, requiring less compute and delivering better performance.
Explore convolutional neural networks (CNNs) as an alternative to fully connected neural networks, using input patches to neurons in hidden layers to focus on local features.
See how a convolutional neural network is structured and implemented. Gain insight into CNN concepts through a first general view and a typical code implementation.
Describe the vision cnn flow from input image through convolutional layers, max pooling, and fully connected layers to output, and how the code builds a deeper cnn.
Explore how neural networks process images by using ReLU in hidden layers and softmax in the output layer for multi-class classification, with 28x28 grayscale inputs and RGB color encoding.
Learn about ReLU and softmax activation functions in deep learning, where ReLU avoids vanishing gradients and softmax converts output scores into probabilities for multi-class classification.
Explore how a convolutional neural network processes input data, images as pixel grids, grayscale values 0-255, and color channels red, green, blue, for filtering and image recognition.
Explore how computer vision recognizes the same object despite shifted, shrunk, rotated, or deformed appearances by treating images as matrices of numbers and building robust recognition systems.
Convolution performs element-wise multiplication of a filter with image patches and sums results to form a feature map, and a perfect match yields a peak response highlighting diagonal lines.
Slide a three by three filter over the input image, perform element-wise multiplication with each patch, and sum results to form feature map, with filter values learned during CNN training.
A filter slides over the input image, performing element-wise multiplication and summation to produce a feature map that reveals where certain features are detected across the image.
Demonstrate the computation of the three by multiplying the filter with the corresponding part of the image, continuing the established process.
CNNs learn filter values during training to detect edges, textures, and patterns, optimizing the network's feature maps for vision tasks.
Apply non-linearity after every convolution operation on feature maps, using ReLU to convert negatives to zero and preserve positives, enabling the network to learn more complex patterns.
The pooling layer downsamples feature maps to reduce dimensionality and computational efficiency, using max pooling over 2x2 areas to preserve important features and achieve spatial invariance.
CNNs, with their architecture, apply to many tasks by combining convolution, ReLU, and pooling layers to learn complex features for classification, object detection, segmentation, and probabilistic control.
AI systems using CNNs detect breast cancer from mammograms, outperform radiologists by spotting subtle signs, and improve early detection and patient outcomes.
Convolutional neural networks detect and locate objects in images, drawing bounding boxes and coordinates to identify cars, people, and more. This capability powers applications such as autonomous driving and surveillance.
Use semantic segmentation with CNNs to precisely segment tumor areas in MRI scans for biomedical image analysis, aiding diagnosis and treatment planning with detailed visual representations.
Explore how the unit convolutional neural network enables image segmentation with a U-shaped design, contracting via downsampling and expanding via upsampling, to produce segmentation maps for MRI brain tumor segmentation.
Explore the early CNN model by Krizhevsky, Sutskever, and Hinton that won the 2012 ImageNet, featuring deep architecture with convolutional, ReLU, and pooling layers for visual recognition.
Trace the evolution of CNNs from 2012 to 2014 through ImageNet results, as CNN-based models reduced error rates and GoogLeNet boosted accuracy, while transformers compete with CNNs in vision tasks.
Engage with interactive playgrounds to test and visualize CNN predictions, deepening your understanding of CNN-based deep learning concepts through hands-on code demos and GitHub-backed experimentation.
Shows a convolutional neural network for mnist digit classification, highlighting training dynamics and hyperparameters: learning rate, batch size, momentum, nesterov momentum; architecture with conv, relu, pooling, softmax, and random crops.
This code demo shows how to fine-tune a pre-trained VGG model on CIFAR-10 using selective layer unfreezing and data augmentation to improve generalization, with practical notes on GPU limitations.
Explore a two-part code demo on training a model and using a pre-trained one, with warnings about long training times and health cautions, then classify images as malignant or benign.
Follow the deep learning process where input data X passes through multiple layers to generate predictions Y', then a loss function guides an optimizer to adjust weights and minimize loss.
Explore recurrent neural networks and how they recognize patterns in sequences, enabling time series forecasting through variable-length data and sharing parameters across the sequence.
Use backpropagation to train time series by computing gradient of the loss with respect to each parameter and updating them to minimize loss; RNNs add complexity from sequential data.
Identify the vanishing gradients problem, where gradients shrink through repeated multiplication of weights less than one, causing updates to vanish and the training process to stall.
RNNs capture differences in sequence order to understand context in time series. They distinguish subtle meaning changes with the same words, a key strength for modeling sequential data.
Explore how LSTM networks overcome standard RNN limits with forget, store, update, and output gates that control the cell state and sustain gradient flow for long-term dependencies.
Explore the limitations of recurrent neural networks and LSTMs, including encoding bottlenecks, slow training, and poor long-term memory, and see how transformers address these challenges in time series.
Utilize an LSTM-based time-series model to predict the S&P 500 index price using historical data since 1990, including volatility, rates, unemployment, sentiment, and new indicators beyond the original paper.
We build on the article predicting stock market index using LSTM and use data from 1990 to improve the single-layer LSTM stock market predictions.
Analyze a complete dataset of 8,366 trading days from 1990 to 2023, featuring closing prices and diverse financial indicators for time series analysis.
Explore macd, rsi, and atr indicators to identify momentum, overbought or oversold conditions, and volatility, and examine their correlations with the closing price via a heat map.
Explore how indicators behave over time in time series data by visualizing historical trends and their relation to closing prices, building an intuitive understanding before modeling.
Forecast time series with LSTMs in Keras by preparing and scaling data, creating input sequences, training, predicting on train and test, and visualizing true versus predicted closing prices.
Interact with the provided code and demos to experiment, tweak, and learn deep learning for time series, using a GitHub copy to reset when needed.
Predict the S&P 500 with a ten-day window time-series model using the closing price since 1990 and indicators such as consumer sentiment, employment, and volatility.
Explore language with transformers in modern artificial intelligence and deep learning, as part of a course covering AI for vision, language processing, and creativity.
Explore transformers as the leading model for language processing since 2017, powering ChatGPT, and extending to image and time sequence processing, while noting emerging successor architectures.
Explore how transformers use attention mechanisms to focus on relevant parts of a sequence, guided by queries, keys, and values to capture context and relationships.
Understand how the transformer model uses an encoder-decoder architecture, with multi-head attention, feed-forward layers, and positional encodings, to compute output probabilities via softmax for efficient language processing.
The transformer uses self-attention in the encoder and decoder, with multi-layer encoders and encoder-decoder attention guiding output. The final probabilities pass through a softmax, enabling accurate, fast language translations.
Explore the complete transformer model architecture, including encoder and decoder input data, embeddings, multi-head attention, and feed forward layers that generate context-aware output probabilities with positional encodings.
Explore how word embeddings map semantic relationships in a vector space, showing how similar contexts link words like man and woman, guiding translation and text generation.
Explain how positional encoding in the transformer adds position information to input embeddings, enabling parallel sequence processing and unique sine and cosine encodings for each token position.
Explore how positional encoding scales to 20,000 positions, illustrating encoding patterns that represent long sequences for tasks like document summarization and long form content generation.
Explore the transformer architecture with a focus on multi-head attention, enabling the model to attend to different input parts simultaneously and boost translation and summarization performance.
See how a single attention head in a transformer links the word dog to other words, using query, keys, and values to weight dependencies and focus on sentence parts.
Multiple attention heads operate independently over the input sequence, focusing on different data aspects, with outputs concatenated and transformed to capture range of dependencies and enhance sequence understanding and generation.
Visualize the transformer’s attention mechanism as a heatmap of word-pair scores, with multi-head attention capturing different input aspects to enrich understanding of relationships and dependencies.
Show how word embeddings like carpe and diem generate query vectors and how each embedding is multiplied by a query weight matrix to determine word relevance in the input sequence.
The transformer generates key vectors from word embeddings using a key weight matrix, enabling comparison with query vectors to compute attention scores.
Explain how softmax normalizes attention scores into probabilities that determine word attention levels, with higher scores indicating higher relevance.
Explain the final step of the attention mechanism, where value vectors are weighted by attention probabilities and summed to produce the final output, integrating information from the input sequence.
Process input embeddings with positional encodings through self-attention and feed-forward networks in a transformer encoder to capture complex patterns and pass the final result for further processing.
Explore the transformer encoder architecture, including add and normalize layers, residual connections, and the combined power of self-attention and feedforward networks to capture language dependencies.
The transformer decoder uses embeddings, positional encodings, and masked self-attention to produce output probabilities via softmax, integrating encoder outputs through attention and feedforward networks.
Explore transformer models in language processing through code demos and transformers beyond code, with playgrounds from various companies and platforms.
Welcome to the Deep Learning and Generative Artificial Intelligence course! This comprehensive course is designed for anyone interested in diving into the exciting world of deep learning and generative AI, whether you're a beginner with no programming experience or an experienced developer looking to expand your skill set.
What You Will Learn:
Foundations of Deep Learning and Artificial Neural Networks: Gain a solid understanding of the basic concepts and architectures that form the backbone of modern AI.
Convolutional Neural Networks (CNNs): Learn how to implement and train CNNs for image classification and object detection tasks using Python and popular deep learning libraries.
Long Short-Term Memory (LSTM) Networks: Explore the application of LSTM networks to predict and analyze time series data, enhancing your ability to handle sequential data.
Transformer Models: Dive into the world of Transformer models, including GPT-type models, and learn how to construct, fine-tune, and deploy these models for various natural language processing tasks.
Generative Adversarial Networks (GANs): Understand the principles behind GANs and learn how to create and train them to generate realistic synthetic images and data.
Variational Auto-Encoders (VAEs): Discover how to build and utilize VAEs for data compression and generation, understanding their applications and advantages.
Style Transfer and Stable Diffusion: Experiment with style transfer techniques and stable diffusion methods to creatively alter and enhance images.
Course Features:
Interactive Coding Exercises: Engage with hands-on coding exercises designed to reinforce learning and build practical skills.
User-Friendly Demos and Playgrounds: For those who prefer a more visual and interactive approach, our course includes demos and playgrounds to experiment with AI models without needing to write code.
Real-World Examples: Each module includes real-world examples and case studies to illustrate how these techniques are applied in various industries.
Project-Based Learning: Apply what you've learned by working on projects that mimic real-world scenarios, allowing you to build a portfolio of AI projects.
Who Should Take This Course?
Aspiring AI Enthusiasts: Individuals with no prior programming experience who want to understand and leverage AI through intuitive interfaces.
Developers and Data Scientists: Professionals looking to deepen their understanding of deep learning and generative AI techniques.
Students and Researchers: Learners who want to explore the cutting-edge advancements in AI and apply them to their studies or research projects.