Skip to content

ShrinivasSK/Meal-Planning

Repository files navigation

Meal-Planning

My BTech Term Project (BTP) at IIT Kharagpur

Refer to the BTP Report and my Final Presentation for details.

A compilation of the slides presented almost every week during the project: here

Required Libraries

Sklearn, scipy, Gensim, Numpy, Pandas, Networkx, Tqdm

How to Run

  • Install the required libraries
  • Update the config.json file. A standard one has been provided
  • Run the main file python3 main.py

Code Structure

  • main.py: The file that needs to be run. Loads the config from the config.json file.
  • hyper_parameter_tuning.py: Contains code to perform a grid search for the best hyper-parameters for the GA
  • testing.py: The code for testing the pipeline for a variety of constraints
  • Configs: various configs that are used for testing the model for a variety of constraints and preferences.
  • Data: Dataset files. For more details refere here
  • Hybrid GA: Contains the code for Evolution according to Hybrid GA algorithm, the Hybrid GA Population maintatining separate lists for feasible and infeasible solutions and Utility files for Hybrid GA.
  • NSGA: Contains the code for Evolution according to NSGA 2 algorithm, the standard GA population and utility files
  • plan: Contains code for the meal planner. Details here
  • Outputs Some output logs that contain suggested meal plans
  • Prepro:
    • Contains code for preprocessing the dataset. The Data folder contains the preprocessed files