How si-cim/prototorch_models works
Main Components
a. Core Components:
• Model Implementation Layer (src/prototorch/models/)
• Abstract Base Classes (abstract.py)
• Model Categories:
• LVQ Family Models
• Unsupervised Learning Models
• Probabilistic Models
• Distance-based Models (KNN)
• Visualization Components (vis.py)
• Callback System (callbacks.py)
b. External Dependencies:
• PyTorch
• PyTorch-Lightning
• ProtoTorch Core
[External Dependencies Layer]
• ↓
[Abstract Base Layer]
• ↓
[Core Implementation Layer]
• ↓
[Model Categories Layer]
• ↓
[Utility Layer (Callbacks, Visualization)]
Component Relationships
• Inheritance relationships from abstract base classes
• Dependencies between components
• Data flow during model training and inference
Specific Implementation Details
a. Model Categories Section:
LVQ Family:
[GLVQ] ← [GRLVQ] ← [GMLVQ]
[Siamese GLVQ]
[RSLVQ]
[PLVQ]
etc.
Unsupervised:
[Neural Gas]
[Growing Neural Gas]
[KSOM]
b. Integration Points:
• How models interact with PyTorch-Lightning
• Demonstrate callback integration
Technical Details
• Model initialization flow
• Training pipeline integration
• Callback hooks
• Visualization pipeline