Back to Blog

DLH — Machine Learning

·Reha Tuncer·Machine Learning
View source on GitHub

DLH — Machine Learning

A structured curriculum building the mathematical and data engineering foundations for machine learning.


Directory Structure

dlh-machine_learning/
├── math/                        # Mathematical foundations
│   ├── linear_algebra/          # Matrix operations: Python lists → NumPy
│   │   ├── 0-slice_me_up.py     through 14-saddle_up.py
│   │   ├── 100-slice_like_a_ninja.py through 102-squashed_like_sardines.py
│   │   └── README.md
│   ├── advanced_linear_algebra/ # Determinant, minor, cofactor, adjugate, inverse, definiteness
│   │   ├── 0-determinant.py through 5-definiteness.py, quiz.py
│   │   └── README.md
│   ├── calculus/                # Derivatives, integrals, partial derivatives, double integrals
│   │   ├── 0-sigma_is_for_sum through 17-integrate.py
│   │   └── README.md
│   ├── bayesian_prob/           # Likelihood, intersection, marginal, posterior probability
│   │   ├── 0-likelihood.py through 3-posterior.py
│   │   └── README.md
│   ├── plotting/                # Matplotlib: line, scatter, bar, frequency, PCA, gradient
│   │   ├── 0-line.py through 101-pca.py
│   │   └── README.md
│   ├── probability/             # Distributions: binomial, normal, poisson, exponential
│   │   ├── binomial.py, normal.py, poisson.py, exponential.py
│   │   └── README.md
│   ├── multivariate_prob/       # Mean vector, covariance, correlation, multivariate normal
│   │   ├── 0-mean_cov.py, 1-correlation.py, multinormal.py
│   │   └── README.md
│   └── README.md
├── pipeline/                    # Data engineering
│   ├── databases/               # SQL: creation, CRUD, joins, aggregates, triggers
│   │   ├── 0-create_database_if_missing.sql through 18-valid_email.sql
│   │   ├── hbtn_0d_tvshows.sql, hbtn_0d_tvshows_rate.sql
│   │   ├── metal_bands.sql, temperatures.sql
│   │   └── README.md
│   └── README.md
├── my-venv/                     # Python virtual environment
└── README.md

Quick Reference

TrackModuleTopicsTasks
MathLinear AlgebraSlicing, shape, transpose, element-wise ops, concat, matrix multiply, NumPy, n-D generalization19
MathAdvanced Linear AlgebraDeterminant, minor, cofactor, adjugate, inverse, definiteness (manual + NumPy)7
MathCalculusDerivatives, partial derivatives, integrals, definite/indefinite, double integrals17
MathBayesian ProbabilityLikelihood, intersection, marginal, posterior probability4
MathPlottingLine, scatter, bar, frequency, all-in-one, gradient descent, PCA9
MathProbabilityBinomial, normal, poisson, exponential distributions4
MathMultivariate ProbabilityMean vector, covariance, correlation, multivariate normal distribution3
PipelineDatabasesDDL, CRUD, WHERE, ORDER BY, GROUP BY, JOINS, aggregates, constraints, triggers18 (+4 schemas)

Learning Progression

Math Track

  1. Python Slicing → 2. Manual Matrix Ops (nested loops) → 3. NumPy Vectorization → 4. N-Dimensional Generalization → 5. Advanced Linear Algebra (determinant → inverse → definiteness) → 6. Calculus (derivatives → integrals) → 7. Probability & Statistics (distributions → Bayesian) → 8. Multivariate Probability (mean/cov → correlation → multivariate normal) → 9. Visualization (plotting → PCA)

Pipeline Track

  1. Foundation (CREATE) → 2. CRUD → 3. Filtering/Sorting → 4. Joins → 5. Constraints → 6. Real-World Data → 7. Triggers

Setup

cd dlh-machine_learning
source my-venv/bin/activate
pip install numpy

Resources