Skip to content

Dietin/Machine_Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine_Learning

Table of contents

General info

This repository will contain information about the models that used by Diet!n applicatin to predicts user's calories need per day with an approach using linear regression

Technologies

  • Tensorflow
  • Pandas
  • Numpy
  • Seaborn

Setup

The setup to build and training the model :

  • Jupyter Notebook
  • Install latest version of libraries (Tensorflow, Pandas, Numpy, Seaborn, etc)
  • Prepare dataset with .csv format

Dataset

The dataset that we used comes from Kaggle's site which is a collection of calorie data to maintain weight based on age, weight, height, gender, BMI, BMR and activity level

Data processing is carried out as follows:

  1. Deleting the bmi_tags column and labels
  2. Changing the category column to numeric
  3. Changing the unit for the user's height column and rounding off the user's weight column

Model Results

Model's Summary

image

Model's Metric

This is how our final model training history WhatsApp Image 2023-06-14 at 19 07 44

Model's Testing

image

image

This is a result of calorie prediction from our model :

image

Final Model's Flow for Daily Calorie Needs Prediction

  1. User inputs personal data according to the data in the training (age, gender, weight, height, activity)
  2. User chooses priority or goals which is maintain, loose or gain their weight
  3. Model will gives prediction of calorie needs based on user priorities
    • For example, if you want to be fat, then input how many kg you are fat, then predict calories based on the data entered + additional weight data
  4. Output that will model gives is number of calories in a day based on user priority

Pipeline for Daily Calorie Needs

  1. Look for datasets related to calories
  2. Prep-rocessing dataset
  3. Create model
  4. Training model
  5. Evaluate model
  6. Retrain model
  7. Deploy model

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published