- Created
SinusTrainingViewModelto manage the training lifecycle. - Implemented
TrainingStateto track epoch, loss, and training status. - Used
viewModelScopewithDispatchers.Defaultfor non-blocking training.
- Created
SinusTrainingScreenwith:- Progress tracking (LinearProgressIndicator).
- Loss display.
- Real-time model visualization using
SinusVisualization.
- Reused existing plot component for consistency.
- Updated
App.ktto include aScaffoldwithNavigationBar. - Integrated
SinusSliderScreenandSinusTrainingScreenas separate tabs. - Shared
SinusTrainingViewModelacross screens to show trained model results in real-time.
- Updated
SinusVisualizationto support an optional 4th curve (approximatedSinusTrained). - Added
TrainedSinusCalculatorto bridge the rawModuleand the calculator interface. - Displayed the trained model's approximation in both Slider and Training screens.