This project uses machine learning algorithms and Python programming to create personalized diet and workout plans. The goal is to provide users with recommendations that align with their fitness goals, dietary preferences, and health conditions.
- Project Structure
- Installation
- Usage
- Dataset
- Model Training
- Evaluation
- Results
- Contributing
- License
- Contact
├── data
│ ├── raw_data.csv # Raw data used for training and evaluation
│ ├── processed_data.csv # Data after preprocessing
├── notebooks
│ ├── data_preprocessing.ipynb # Notebook for data cleaning and preprocessing
│ ├── model_training.ipynb # Notebook for training models
│ ├── evaluation.ipynb # Notebook for model evaluation
├── src
│ ├── data_preprocessing.py # Script for data preprocessing
│ ├── model.py # Script for model architecture and training
│ ├── evaluation.py # Script for evaluating the models
├── output
│ ├── model.pkl # Trained model file
│ ├── results # Folder containing results (graphs, metrics)
├── README.md
└── requirements.txt
-
Clone the repository:
git clone https://github.com/your-username/diet-recommendation-workout-plan.git cd diet-recommendation-workout-plan
-
Set up a virtual environment (optional but recommended):
python3 -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Data Preprocessing:
- Run the data preprocessing script to clean and prepare the dataset:
python src/data_preprocessing.py
- Run the data preprocessing script to clean and prepare the dataset:
-
Model Training:
- Train the machine learning model using the following command:
python src/model.py
- Train the machine learning model using the following command:
-
Model Evaluation:
- Evaluate the model's performance:
python src/evaluation.py
- Evaluate the model's performance:
-
Generate Recommendations:
- Use the trained model to generate personalized diet and workout plans:
python src/recommendation.py
- Use the trained model to generate personalized diet and workout plans:
- The dataset used in this project consists of FOOD , Nutrition distribution , workout plan CSV file
- The model is trained using k mean and random forest algorithm
- Training involves classification and decission tree .
- The model's performance is evaluated using [- Accuracy: Correct BMI predictions
- Precision: Relevant food/workout suggestions
- Recall: Identified appropriate BMI categories
- F1-Score: Balanced recommendation effectiveness ].
- Results and evaluation metrics are stored in the
output/results
directory.
- The model evaluation for the 'Diet Recommendation and Workout Plan' project showed accurate BMI predictions and personalized workout and food plans. The results were summarized in tables, with graphs displaying BMI categories and recommended plans based on user data.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, feel free to contact:
- Name: TEJAS A M
- Email: tejasam571@gmail.com
Feel free to customize the above template according to your specific needs!