Introduction to Deep Learning
December 4, 2023 ยท machine learning
Introduction to Deep Learning
Motivation for Deep Learning
- Eliminates the need for manual feature extraction.
Why Deep Learning is Prevalent Now
- Big Data: Availability of large datasets.
- Hardware Progress: Enhancements in hardware, especially those that are massively parallelizable.
- Software Advancements: Development of efficient software, e.g., TensorFlow.
Understanding the Perceptron
- A perceptron is a single neuron used for forward propagation.
- Components:
- Inputs
- Weights
- Summation
- Non-Linearity (Activation Functions):
- Common functions include:
tf.math.sigmoid
tf.math.tanh
tf.nn.relu
- Purpose: To model real-world non-linearities.
- Output
From Perceptron to Neural Network
- Dense Layer: Basic building block (
tf.keras.layers.Dense(units)).
- Sequential Model:
model = tf.keras.Sequential([layers]).
- Concept: Stacking multiple layers forms a deep neural network.
Training a Deep Learning Model
- Loss Function:
- Examples:
cross_entropy_with_logits (for binary classification), Mean Squared Error (MSE).
- Loss Optimization (Backpropagation):
- Learning Rate: Balancing exploration and exploitation.
- Gradient Descent Algorithms:
- Stochastic Gradient Descent (SGD)
- Adam
- Adadelta
- Adagrad
- RMSProp
- Mini-batches: For efficient training.
- Avoiding Overfitting:
- Regularization Techniques:
- Dropout
- Early Stopping