Adding New Error Metrics
💡
See File Tree Explanation to understand the project's file and folder structure
In order to add new error metrics to the approximator:
-
Add the new error metric algorithm in the folder
Analyzers
-
Define how UI will look like for the new error metric in the folder
Layout
-
(Optional) Write validation logic/input constraints for the new error metrics in the folder
Validators
- See Error Analysis Validation logic here
- Function that takes in input values and return True if error occur, False otherwise
-
Add logic to handle UI input changes in folder
Logic
. This ties the UI events to the code that runs, akin to event handlers- See Error Analysis UI logic here
- e.g: What to do when a certain button has been pressed
- e.g: What to do when certain input filed has been filled
- e.g: When button has been pressed:
- runs validation logic, then
- runs error metric algorithm, then
- display result to user, then
- (optional) clear any previous input values