KYK_Final_Project_Report
KYK_Final_Project_Report
Cuisine Prediction
Kriti Garg, Yagya Goyal, Kartikey Agarwal
2 Introduction
Cuisine prediction is a multi-class classification 3.2 Model Architecture
problem where the goal is to predict the type Feedforward - The front pass
of cuisine based on the ingredients in a recipe. The feedforward neural network was designed
This project focuses on developing an efficient with:
machine learning pipeline to handle the task,
starting from data preprocessing and feature ex- 1. Input layer matching the number of TF-
traction to training a feedforward neural net- IDF features.
work. The provided dataset is used as a bench-
mark, which includes recipes labeled with their 2. Two hidden layers with 128 and 64 neurons,
respective cuisines and ingredient lists. This re- using ReLU activations and dropout for reg-
port highlights the methodology, experiments, ularization.
1
by instance using the training DataLoader.
The number of epochs are kept large enough
to see the accuracy converging to a value.
4. After each epoch: The validation set is
evaluated, and metrics such as loss and ac-
curacy are calculated.
2
Figure 7: Using Batch Size = 10
Figure 3: Without Preprocessing
5 Discussion
1. TF-IDF Effectiveness: TF-IDF proved ef-
Figure 6: Using total of 1 layer fective in capturing text features for multi-
class classification tasks. Limiting the fea-
ture size to 4508 balanced performance and
Observations efficiency. This feature of the code gives the
3
Figure 9: Final Model accuracy results
Conclusions
Despite being a relatively straightforward archi-
tecture, the model proved to be suitable for the
multi-class classification task, highlighting the
importance of careful preprocessing and data
balancing in text-based machine learning tasks.
Acknowledgements
We would like to thank Anant sir, for guiding us
through the project, with valuable insights that
helped us get the best out of it.
References
[1] Learn with Jay, Adam Optimizer
Appendix
This part contains the actual numbers of the
tests and experiments conducted. It can be
viewed on this link:
Appendix - Numbers