mohammadijoo /
Machine_Learning_Tutorials
This repository includes a comprehensive machine learning tutorial in jupyter notebook style, in both languages, English and Farsi.
63/100 healthLoading repository data…
mfurqaniftikhar / repository
A comprehensive educational collection of Jupyter notebooks demonstrating various generative models using TensorFlow/Keras. Learn from Bayesian sampling to GANs and VAEs through hands-on demonstrations.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A comprehensive educational collection of Jupyter notebooks demonstrating various generative models using TensorFlow/Keras. Learn from Bayesian sampling to GANs and VAEs through hands-on demonstrations.
This tutorial covers the complete journey of generative models: from basic statistical sampling to advanced deep learning techniques. Each notebook is a standalone demo with working code, visualizations, and explanations.
Topics Covered:
Framework: TensorFlow/Keras
Language: Python 3
Skill Level: Beginner to Intermediate
Generative Models Tutorial/
│
├── 1. Bayesian_Gaussian_Demo.ipynb
│ └─ Basic sampling from Bayesian classifier
│
├── 2. Bayesian_Gaussian_GMM_Demo.ipynb
│ └─ Gaussian Mixture Models with EM algorithm
│
├── 3. Auto_Encoder_Tensorflow_Demo.ipynb
│ └─ Basic autoencoder implementation
│
├── 4. Variational_Auto_Encoder_Tensorflow_Demo.ipynb
│ └─ VAE with probabilistic latent space
│
├── 5. DcGAN_Tensorflow_Demo.ipynb
│ └─ DCGAN for image generation
│
├── dcgan_samples/
│ └─ Generated face samples from DCGAN
│
├── large_files/
│ └─ Additional resources and data
│
└── README.md
└─ This file
Concepts Covered:
What You'll Learn:
Output:
Concepts Covered:
What You'll Learn:
Output:
Key Formula:
GMM: p(x) = Σ π_k * N(x | μ_k, Σ_k)
EM: Iteratively maximize Q(θ|θ_old)
Concepts Covered:
What You'll Learn:
Architecture:
Input (784) → Dense(256) → Dense(64) → Latent(2)
↓
Latent(2) → Dense(64) → Dense(256) → Output(784)
Output:
Concepts Covered:
What You'll Learn:
Architecture:
Input → Encoder → μ, σ² (latent distribution)
↓
Sampling Layer (reparameterization)
↓
Decoder → Output
Loss Function:
ELBO = -E_q[log p(x|z)] + KL(q(z|x) || p(z))
= Reconstruction Loss + KL Divergence
Output:
Concepts Covered:
What You'll Learn:
Architecture:
Generator:
Noise(100) → Dense → Reshape → ConvT → ConvT → ConvT → Image(3×32×32)
Discriminator:
Image(3×32×32) → Conv → Conv → Conv → Dense → Binary Output(0/1)
Loss Functions:
Discriminator: max E[log(D(real))] + E[log(1-D(fake))]
Generator: max E[log(D(fake))]
Output:
Week 1: Foundations
├─ Bayesian Gaussian Demo
└─ GMM Demo (understand probabilistic modeling)
Week 2: Deep Learning for Generation
├─ Autoencoder Demo (unsupervised learning)
└─ VAE Demo (probabilistic generation)
Week 3: Adversarial Training
└─ DCGAN Demo (GAN concepts)
pip install tensorflow keras numpy matplotlib jupyter
jupyter notebook 1.Bayesian_Gaussian_Demo.ipynb
| Concept | Purpose | Output | Complexity |
|---|---|---|---|
| Bayesian Sampling | Learn distributions | Samples | ⭐ |
| GMM | Clustering | Class labels | ⭐⭐ |
| Autoencoder | Compress data | Reconstructed images | ⭐⭐ |
| VAE | Generate new data | New images, smooth space | ⭐⭐⭐ |
| DCGAN | Realistic generation | Photorealistic images | ⭐⭐⭐⭐ |
Reconstruction Error = MSE(original, reconstructed)
Lower = Better reconstruction
Typical: 0.001 - 0.01
ELBO = -log p(x) + KL(q||p)
Higher ELBO = Better model
Typical: 100 - 200
Inception Score: 5-10 (higher better)
FID Score: 10-50 (lower better)
Mode coverage: % of actual classes generated
latent_dim = [2, 8, 16, 32] # Larger = more info
hidden_dim = [64, 128, 256] # Model capacity
batch_size = [32, 64, 128]
learning_rate = [0.001, 0.01]
kl_weight = [0.1, 1.0, 10.0] # KL regularization
latent_dim = [8, 16, 32]
reconstruction_loss_weight = [1.0, 100.0]
conv_dim = [32, 64, 128] # Filter size
z_dim = [50, 100, 200] # Noise dimension
learning_rate_G = 0.0002
learning_rate_D = 0.0002
beta1 = [0.5, 0.9] # Adam parameter
Solutions:
Solutions:
Solutions:
p(x) = (1/(√(2πσ²))) * exp(-(x-μ)²/(2σ²))
E-step: Compute posterior p(z|x,θ)
M-step: Update parameters θ
log p(x) ≥ E_q[log p(x|z)] - KL(q(z|x)||p(z))
└─ Reconstruction ┘ └─ Regularization ┘
min_G max_D E[log D(x)] + E[log(1-D(G(z)))]
The dcgan_samples/ folder contains:
Tutorial Created For: Educational purposes
Framework: TensorFlow/Keras
Adapted By: Furqan - AI Engineer & Lead AI Trainer
Organization: Saylani Mass IT Training (SMIT)
Location: Karachi, Pakistan
Original References:
After completing this tutorial, you will understand:
✅ How to sample from probability distributions
✅ Expectation-Maximization algorithm
✅ Autoencoder architecture and training
✅ Variational inference concepts
✅ How GANs learn through adversarial training
✅ How to implement generative models in TensorFlow
✅ How to train and evaluate generative models
✅ Applications of generative models
Master the art and science of generation! 🎨✨
From simple sampling to photorealistic face generation - this tutorial covers the complete journey! 🚀
Selected from shared topics, language and repository description—not editorial ratings.
mohammadijoo /
This repository includes a comprehensive machine learning tutorial in jupyter notebook style, in both languages, English and Farsi.
63/100 healthmdzaheerjk /
A comprehensive educational repository featuring Jupyter Notebook tutorials and hands-on projects for learning agentic AI development. This bootcamp covers core concepts, practical implementations, and real-world applications of AI agents.
62/100 healthAliMunzerShamma /
This repository contains a fully educational Jupyter Notebook dedicated to exploring, analyzing, cleaning, transforming, and preparing the FIFA 2021 players dataset for machine-learning applications.
34/100 healthMehrdadDastouri /
A comprehensive collection of attention mechanism implementations from seminal research papers, with complete mathematical derivations, PyTorch implementations, and educational Jupyter notebooks.
44/100 healthakinkarlitepe /
A project with comprehensive stages such as writing a web technologies Python library using bno055,icm20948 and IR sensors and developing Jupyter applications with ipywidgets
34/100 healthminhosong88 /
This Jupyter Notebook provides a comprehensive tutorial on the Dart programming language
39/100 health