Commit Graph

623 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
fcb6623bfc Add section organization to 10_optimizers module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:06:19 -04:00
Vijay Janapa Reddi
f63a2bb52b Add section organization to 09_autograd module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:05:44 -04:00
Vijay Janapa Reddi
c7af01596e Add section organization to 08_dataloader module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:05:03 -04:00
Vijay Janapa Reddi
a2788db356 Add section organization to 07_attention module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:04:31 -04:00
Vijay Janapa Reddi
91f7ecac62 Add section organization to 06_spatial module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:03:50 -04:00
Vijay Janapa Reddi
dbb6db6ac2 Add section organization to 05_dense module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:03:17 -04:00
Vijay Janapa Reddi
35e54335a6 Add section organization to 04_layers module: Add DEVELOPMENT section header
- Insert ## 🔧 DEVELOPMENT header before first test function
- Organizes module according to educational structure guidelines
- Maintains all existing functionality and test execution
- Improves readability and navigation for educational use
2025-07-20 14:01:13 -04:00
Vijay Janapa Reddi
c1775558c6 Add integration test to 15_mlops module: test_module_mlops_tinytorch_integration
- Tests MLOps pipeline integration with complete TinyTorch models and workflows
- Validates performance monitoring with realistic model inference scenarios
- Tests data drift detection with model input features and production data
- Verifies complete MLOps pipeline with TinyTorch Sequential model integration
- Tests retraining triggers with TinyTorch training workflow compatibility
- Validates end-to-end MLOps workflow with comprehensive system health checks
- Positioned before MODULE SUMMARY as per educational structure
2025-07-20 14:00:00 -04:00
Vijay Janapa Reddi
966091c3b5 Add integration test to 03_activations module: test_module_activation_tensor_integration
- Tests activation function integration with Tensor class operations
- Validates that activations preserve Tensor types in neural network contexts
- Tests matrix operations for multi-dimensional neural network layers
- Verifies softmax probability distributions for classification scenarios
- Tests chaining tensor operations with activations for complete workflows
- Positioned before MODULE SUMMARY as per educational structure
2025-07-20 13:59:11 -04:00
Vijay Janapa Reddi
bbf1dd91c9 Add integration test to 02_tensor module: test_module_tensor_numpy_integration
- Tests tensor integration with NumPy arrays and operations
- Validates tensor-NumPy compatibility for scientific computing
- Ensures broadcasting works correctly between tensors and scalars
- Verifies integration with NumPy functions on tensor data
- Positioned before MODULE SUMMARY as per educational structure
2025-07-20 13:57:34 -04:00
Vijay Janapa Reddi
586b7e3f25 Improves clarity of visual understanding sections
Updates loss landscape descriptions to be more easily understood.

Replaces symbols with clearer text in visual explanations of optimizers.
2025-07-20 13:49:40 -04:00
Vijay Janapa Reddi
cc9cdee97d Deprecate AUTO TESTING: Remove run_module_tests_auto from all _dev.py modules. Standardize on full-module test execution for reliable, context-aware testing. 2025-07-20 13:28:10 -04:00
Vijay Janapa Reddi
9cfb6726c2 Removes test report file
Deletes the test report markdown file, as it is no longer needed.
2025-07-20 13:08:36 -04:00
Vijay Janapa Reddi
5041cb6c64 Fix indentation issues in dense module - remove duplicate function and fix __main__ block 2025-07-20 13:08:13 -04:00
Vijay Janapa Reddi
5618daa26e Update test function names from test_integration_* to test_module_* for clearer cross-module testing semantics 2025-07-20 13:03:52 -04:00
Vijay Janapa Reddi
902e1f7c3a Implement logical test sequencing - unit tests run first, then integration tests 2025-07-20 13:02:21 -04:00
Vijay Janapa Reddi
d1d02d3882 Renames and runs integration tests for compression
Refactors integration test names for clarity.

Executes the integration tests to validate the compression functionality.
2025-07-20 13:00:02 -04:00
Vijay Janapa Reddi
fc3417638b Renames training integration test function
Updates the name of the unit test function for training
integration to improve clarity and consistency.

This change ensures the test function name accurately
reflects its purpose.
2025-07-20 12:59:58 -04:00
Vijay Janapa Reddi
6b2d2c184e Removes integration test execution
Stops the automatic execution of the integration test.

This change prevents the test from running every time the module is loaded,
allowing for more focused and controlled testing.
2025-07-20 12:59:54 -04:00
Vijay Janapa Reddi
e30316b8f2 Renames integration test function
Updates the integration test function name for clarity
and consistency within the codebase.
2025-07-20 12:59:51 -04:00
Vijay Janapa Reddi
d950834de4 Removes autogenerated markdown section
Removes a markdown section that appears to be autogenerated documentation, cleaning up the code.
2025-07-20 12:57:02 -04:00
Vijay Janapa Reddi
6b3aa8fcf8 Clean up formatting in layers module 2025-07-20 12:54:57 -04:00
Vijay Janapa Reddi
f4c628782d Fix test function calls in spatial and dataloader modules - move test calls outside __main__ blocks 2025-07-20 12:54:15 -04:00
Vijay Janapa Reddi
b3d6edb789 Fix test function calls - remove __main__ wrapper to ensure tests run during automation 2025-07-20 12:51:47 -04:00
Vijay Janapa Reddi
d039d89d76 Update benchmark test results with latest performance metrics 2025-07-20 12:47:21 -04:00
Vijay Janapa Reddi
ede665e2dc Simplify plot handling - remove _should_show_plots functions and plot guards 2025-07-20 12:47:14 -04:00
Vijay Janapa Reddi
98a7228bf5 Removes development headers from notebooks
Removes redundant "DEVELOPMENT" headers from several notebook files.

These headers are no longer necessary and declutter the notebook content, improving readability and focus on the core content and testing sections.
2025-07-20 12:39:21 -04:00
Vijay Janapa Reddi
3cc86bb3d6 Standardize section headers for 15_mlops module 2025-07-20 12:32:47 -04:00
Vijay Janapa Reddi
c5d337995b Standardize section headers for 14_benchmarking module 2025-07-20 12:32:14 -04:00
Vijay Janapa Reddi
bd852ef015 Standardize section headers for 13_kernels module 2025-07-20 12:31:42 -04:00
Vijay Janapa Reddi
9dd8c731ae Standardize section headers for 12_compression module 2025-07-20 12:31:12 -04:00
Vijay Janapa Reddi
fed232beb8 Standardize section headers for 11_training module 2025-07-20 12:30:42 -04:00
Vijay Janapa Reddi
c5e3e98f72 Standardize section headers for 10_optimizers module 2025-07-20 12:30:05 -04:00
Vijay Janapa Reddi
86e3a8aaf3 Standardize section headers for 09_autograd module 2025-07-20 12:29:33 -04:00
Vijay Janapa Reddi
66839bcaca Standardize section headers for 08_dataloader module 2025-07-20 12:29:02 -04:00
Vijay Janapa Reddi
b9b9637fa1 Standardize section headers for 07_attention module 2025-07-20 12:28:32 -04:00
Vijay Janapa Reddi
dc58bc2f41 Standardize section headers for 06_spatial module 2025-07-20 12:27:56 -04:00
Vijay Janapa Reddi
90f7212594 Standardize section headers for 05_dense module 2025-07-20 12:26:47 -04:00
Vijay Janapa Reddi
bae21b7d49 Standardize section headers for 04_layers module 2025-07-20 12:25:54 -04:00
Vijay Janapa Reddi
68465b1c1c Standardize section headers for 03_activations module 2025-07-20 12:25:17 -04:00
Vijay Janapa Reddi
51af9dd5d7 Standardize section headers for 02_tensor module 2025-07-20 12:24:40 -04:00
Vijay Janapa Reddi
5edda183bb Standardize section headers for 01_setup module 2025-07-20 12:24:02 -04:00
Vijay Janapa Reddi
d88f19f4e5 Update test execution report 2025-07-20 12:20:10 -04:00
Vijay Janapa Reddi
b68bc2bfb7 Fix test naming and enhance plot detection 2025-07-20 12:20:00 -04:00
Vijay Janapa Reddi
6a483d713c Replace manual test calls with automatic discovery 2025-07-20 12:19:49 -04:00
Vijay Janapa Reddi
6fef27be01 Separate plot functions from test execution 2025-07-20 12:19:39 -04:00
Vijay Janapa Reddi
c4d987cbb7 docs: Add comprehensive test documentation across all modules
 Standardized test explanations with consistent format
📝 Added markdown cells before all test functions
🎯 Improved educational clarity for student understanding

Changes:
- 01_setup: Added 2 test explanations (personal_info, system_info)
- 02_tensor: Added 3 test explanations (creation, properties, arithmetic)
- 12_compression: Added 8 test explanations (metrics, pruning, quantization, distillation, etc.)

All 15 modules now follow standardized test documentation pattern:
### 🧪 Unit Test: [Component Name]
[Brief explanation of validation purpose]

Ensures every test has clear educational context for students.
2025-07-20 10:58:08 -04:00
Vijay Janapa Reddi
fb45b2deaa 🎉 Complete test function call validation across all TinyTorch modules
 COMPLETED: Systematic review and fixes for ALL 15 modules with _dev.py files

📊 SUMMARY OF WORK:
  • 01_setup: Added missing test function calls
  • 02_tensor: Added missing test function calls
  • 03_activations: Already had all calls ✓
  • 04_layers: Fixed function name mismatches
  • 05_dense: Added missing test function calls
  • 06_spatial: Added missing test function calls
  • 07_attention: Added missing test function calls
  • 08_dataloader: Already had all calls ✓
  • 09_autograd: Added missing calls + fixed name mismatches
  • 10_optimizers: Added missing test function call
  • 11_training: Added missing calls + fixed name mismatches
  • 12_compression: Added missing calls + fixed name mismatches
  • 13_kernels: Fixed function name mismatches
  • 14_benchmarking: Added missing calls + fixed name mismatches
  • 15_mlops: Fixed function name mismatches

🔧 CHANGES MADE:
  • Added test function calls after function definitions where missing
  • Fixed function name mismatches (e.g., test_xxx() → test_unit_xxx())
  • Ensured every test function is actually executed when cells run

🎯 RESULT: Students now get immediate feedback from all test functions!
  Every test function defined in the modules is now properly called,
  providing real-time validation and educational feedback to students.
2025-07-20 10:45:42 -04:00
Vijay Janapa Reddi
b64a34feb5 🧪 Fix test function name mismatches in 15_mlops module
- Fixed test_model_monitor() → test_unit_model_monitor()
- Fixed test_drift_detector() → test_unit_drift_detector()
- Fixed test_retraining_trigger() → test_unit_retraining_trigger()
- Fixed test_mlops_pipeline() → test_unit_mlops_pipeline()
- Fixed test_comprehensive_integration() → test_module_comprehensive_mlops()

Ensures correct function names are called to match their definitions.
2025-07-20 10:45:27 -04:00
Vijay Janapa Reddi
3b191eb89d 🧪 Add missing test function calls and fix name mismatches in 14_benchmarking module
- Added test_unit_benchmark_scenarios() call after function definition
- Fixed test_statistical_validation() → test_unit_statistical_validation()
- Added test_unit_tinytorch_perf() call after function definition
- Fixed test_performance_reporter() → test_unit_performance_reporter()
- Fixed test_comprehensive_benchmarking() → test_module_comprehensive_benchmarking()

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:42:38 -04:00