Welcome to the ai_python Artificial Intelligence & Deep Learning Module. This module provides a complete 3-tier pedagogical architecture for mastering neural network data preprocessing (MNIST digit vector flattening & pixel normalization), object-oriented model building (DenseLayer, SequentialModel), mathematical activation functions (ReLU, Softmax), range-driven training epoch iteration, dir(range) runtime introspection, and historical version evolution notes from Python 2.7 to 3.13.
ai_python/
βββ 01_fundamentals/
β βββ mnist_classifier_basics.py # Pixel normalization [0..255] -> [0..1], 2D grid flattening, metrics
β βββ test_fundamentals.py # Unittest suite for normalization, flattening, and metrics
βββ 02_advanced_model_architecture/
β βββ advanced_neural_network.py # DenseLayer, SequentialModel, ReLU, Softmax, forward propagation
β βββ test_advanced.py # Unittest suite for neural layers, Softmax probability sum, predictions
βββ 03_range_evolution_and_performance/
β βββ range_epoch_performance.py # Epoch/batch range iteration, O(1) memory benchmarking, dir(range) matrix
β βββ test_range_evolution.py # Unittest suite for epoch range generator & reflection
βββ test_ai_python_master.py # Master unittest runner executing all 3 sub-tier test suites
βββ README.md # Module documentation & usage guide
Run basic synthetic image preprocessing and metric calculation demo:
python3 ai_python/01_fundamentals/mnist_classifier_basics.pyExecute multi-layer forward propagation pass (784 -> 128 -> 10 nodes):
python3 ai_python/02_advanced_model_architecture/advanced_neural_network.pySimulate range epoch iteration loops and memory benchmarks:
python3 ai_python/03_range_evolution_and_performance/range_epoch_performance.pyRun the master test runner from the root repository directory:
python3 ai_python/test_ai_python_master.pyOr execute individual test suites:
python3 -m unittest discover -s ai_python/01_fundamentals -p "test_*.py"
python3 -m unittest discover -s ai_python/02_advanced_model_architecture -p "test_*.py"
python3 -m unittest discover -s ai_python/03_range_evolution_and_performance -p "test_*.py"| Sub-Tier | Primary Features Covered | Code File | Unit Test File |
|---|---|---|---|
| 01_fundamentals | Matrix flattening ( |
mnist_classifier_basics.py |
test_fundamentals.py |
| 02_advanced | Object-oriented DenseLayer, SequentialModel, ReLU math, Softmax probability distribution |
advanced_neural_network.py |
test_advanced.py |
| 03_range & evolution | Epoch training loop range(1, epochs+1), mini-batch offsets, dir(range) matrix |
range_epoch_performance.py |
test_range_evolution.py |