Commit Graph

353 Commits

Author SHA1 Message Date
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
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
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
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
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
Vijay Janapa Reddi
f2713f0fef 🧪 Fix test function name mismatches in 13_kernels module
- Fixed test_matmul_baseline() → test_unit_matmul_baseline()
- Fixed test_vectorized_operations() → test_unit_vectorized_operations()
- Fixed test_cache_friendly_matmul() → test_unit_cache_friendly_matmul()
- Fixed test_parallel_processing() → test_unit_parallel_processing()
- Fixed test_simple_kernel_timing() → test_unit_simple_kernel_timing()
- Fixed test_compressed_kernels() → test_unit_compressed_kernels()

Ensures correct function names are called to match their definitions.
2025-07-20 10:40:21 -04:00
Vijay Janapa Reddi
1bbe23e457 🧪 Add missing test function calls and fix name mismatches in 12_compression module
- Added test_unit_compression_metrics() call and fixed name mismatch
- Added test_unit_magnitude_pruning() call and fixed name mismatch
- Added test_unit_quantization() call and fixed name mismatch
- Added test_unit_distillation() call and fixed name mismatch
- Added test_unit_structured_pruning() call and fixed name mismatch
- Added test_unit_comprehensive_comparison() call and fixed name mismatch

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:38:22 -04:00
Vijay Janapa Reddi
4ca5bfa154 🧪 Add missing test function calls and fix name mismatches in 11_training module
- Added test_unit_mse_loss() call after function definition
- Added test_unit_crossentropy_loss() call after function definition
- Added test_unit_binary_crossentropy_loss() call after function definition
- Fixed test_accuracy_metric() → test_unit_accuracy_metric()
- Fixed test_trainer() → test_unit_trainer()
- Fixed test_training() → test_module_training()

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:35:19 -04:00
Vijay Janapa Reddi
1eea28e7ed 🧪 Add missing test function call in 10_optimizers module
- Added test_unit_gradient_descent_step() call after function definition

Ensures the gradient descent step test function is executed when cells run, providing immediate feedback to students.
2025-07-20 10:32:21 -04:00
Vijay Janapa Reddi
c52f7c8e9e 🧪 Add missing test function calls and fix name mismatches in 09_autograd module
- Added test_unit_variable_class() call after function definition
- Added test_unit_add_operation() call after function definition
- Added test_unit_multiply_operation() call after function definition
- Added test_unit_subtract_operation() call after function definition
- Added test_unit_chain_rule() call after function definition
- Added test_module_neural_network_training() call after function definition
- Fixed function name mismatches in existing if __name__ == '__main__' calls

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:30:51 -04:00
Vijay Janapa Reddi
b6e4c2ad1a 🧪 Add missing test function calls in 07_attention module
- Added test_unit_attention_mechanism() call after function definition
- Added test_unit_self_attention_wrapper() call after function definition
- Added test_unit_masking_utilities() call after function definition

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:27:34 -04:00
Vijay Janapa Reddi
b9c3d3312c 🧪 Add missing test function calls in 06_spatial module
- Added test_unit_convolution_operation() call after function definition
- Added test_unit_conv2d_layer() call after function definition
- Added test_unit_flatten_function() call after function definition

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:26:11 -04:00
Vijay Janapa Reddi
ebf0114a65 🧪 Add missing test function calls in 05_dense module
- Added test_unit_network_architectures() call (first instance)
- Added test_unit_sequential_networks() call
- Added test_unit_mlp_creation() call
- Added test_unit_network_architectures() call (second instance)
- Added test_unit_network_applications() call

Ensures all test functions are executed when cells run, providing immediate feedback to students.
2025-07-20 10:24:51 -04:00
Vijay Janapa Reddi
2a772ee25d 🧪 Fix test function name mismatches in 04_layers module
- Fixed test_matrix_multiplication() → test_unit_matrix_multiplication()
- Fixed test_dense_layer() → test_unit_dense_layer()
- Fixed test_layer_activation() → test_unit_layer_activation()

Ensures correct function names are called to match their definitions.
2025-07-20 10:22:11 -04:00
Vijay Janapa Reddi
c0b27e7b61 🧪 Add missing test function calls in 02_tensor module
- Added test_unit_tensor_creation() call after function definition
- Added test_unit_tensor_properties() call after function definition
- Added test_unit_tensor_arithmetic() call after function definition

Ensures test functions are actually executed when cells run, providing immediate feedback to students.
2025-07-20 10:19:56 -04:00
Vijay Janapa Reddi
7f9cd1d92f 🧪 Add missing test function calls in 01_setup module
- Added test_unit_personal_info_basic() call after function definition
- Added test_unit_system_info_basic() call after function definition

Ensures test functions are actually executed when cells run, providing immediate feedback to students.
2025-07-20 10:18:52 -04:00
Vijay Janapa Reddi
fc28c4cab2 Add structural organization headers to 15_mlops module
- Added ## 🔧 DEVELOPMENT section before Step 1 where development begins
- Added ## 🤖 AUTO TESTING section before nbgrader block
- Updated to ## 🎯 MODULE SUMMARY: MLOps Production Systems

Improves notebook organization without changing any code logic or content.
2025-07-20 10:11:44 -04:00
Vijay Janapa Reddi
ccda578317 Add structural organization headers to 14_benchmarking module
- Added ## 🔧 DEVELOPMENT section before Step 1 where development begins
- Added ## 🤖 AUTO TESTING section before nbgrader block
- Updated to ## 🎯 MODULE SUMMARY: Performance Benchmarking

Improves notebook organization without changing any code logic or content.
2025-07-20 10:10:44 -04:00
Vijay Janapa Reddi
c8e0cf6b76 Add structural organization headers to 13_kernels module
- Added ## 🔧 DEVELOPMENT section before Step 1 where development begins
- Added ## 🤖 AUTO TESTING section before nbgrader block
- Updated to ## 🎯 MODULE SUMMARY: Hardware-Optimized Operations

Improves notebook organization without changing any code logic or content.
2025-07-20 10:09:46 -04:00
Vijay Janapa Reddi
40ad9e01a2 Add structural organization headers to 12_compression module
- Added ## 🔧 DEVELOPMENT section before Step 1 where development begins
- Added ## 🤖 AUTO TESTING section before nbgrader block
- Updated to ## 🎯 MODULE SUMMARY: Model Compression

Improves notebook organization without changing any code logic or content.
2025-07-20 10:08:42 -04:00
Vijay Janapa Reddi
c20418cadf Add structural organization headers to 11_training module
- Added ## 🔧 DEVELOPMENT section before Step 1 where development begins
- Added ## 🤖 AUTO TESTING section before nbgrader block
- Updated to ## 🎯 MODULE SUMMARY: Neural Network Training

Improves notebook organization without changing any code logic or content.
2025-07-20 10:07:38 -04:00
Vijay Janapa Reddi
851ced2f99 Add structural organization headers to 10_optimizers module
- Added ## 🔧 DEVELOPMENT section before Step 1 where development begins
- Added ## 🤖 AUTO TESTING section before nbgrader block
- Updated to ## 🎯 MODULE SUMMARY: Optimization Algorithms

Improves notebook organization without changing any code logic or content.
2025-07-20 10:06:38 -04:00