Machine Learning & Gradient Descent
import DriveAsset from ’../../../../components/DriveAsset.astro’;
🗂️ Course Assets (Google Drive)
Section titled “🗂️ Course Assets (Google Drive)”🎯 Key Objectives
Section titled “🎯 Key Objectives”- Understand empirical risk minimization.
- Formalize Gradient Descent and convergence conditions.
- Connect theoretical optimization to applied deep learning pipelines.
📐 Mathematical Formulation
Section titled “📐 Mathematical Formulation”Mean Squared Error (MSE) Loss
Section titled “Mean Squared Error (MSE) Loss”For a dataset of training points , the loss is defined as:
Parameter Update Rule
Section titled “Parameter Update Rule”In standard gradient descent with learning rate :
Where the gradient vector is given by:
💻 Python Implementation
Section titled “💻 Python Implementation”import numpy as np
def gradient_descent(X, y, lr=0.01, epochs=1000): m, n = X.shape theta = np.zeros((n, 1))
for epoch in range(epochs): predictions = X @ theta errors = predictions - y gradient = (1 / m) * (X.T @ errors) theta -= lr * gradient
return theta🎙️ Applied Deep Learning: Voice Synthesis & Checkpoints
Section titled “🎙️ Applied Deep Learning: Voice Synthesis & Checkpoints”Mathematical optimization and backpropagation directly power the neural models trained in the Voice ML Project:
- Acoustic Modeling: Adapting pre-trained HuBERT representations to extract speaker latent features from reference clips.
- Text-to-Semantic Synthesis: Autoregressive transformers trained to map phoneme sequences into semantic speech tokens.
- Diffusion / VITS Vocoder: Inverting semantic tokens and mel-spectrogram representations into natural time-domain audio waveforms.
- Checkpoint Archival: The synchronized 17.5 GB
ml_models.ziparchive contains fine-tuned checkpoints alongside UVR5 vocal separation models and Whisper ASR transcription models.