Made ML to calculate the percent chance of having diabetes by inputting height, weekly sugar intake, weekly activity in hours, approximate bodyfat, and age.
Already integrated in CPT project, relates as CPT project is about food and recipes. ML section can help users track their health.
Screenshot of ML Page:
Demo:
Frontend code:
Getting the input values from user input
Screenshot of ML Page:
Demo:
Frontend code: Getting the input values from user input
Sending prediction request with fetch
Backend code: Math to get probabilities
Logistic Regression Model and getting user input
Generated CSV file