Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Integration:  dvc git github
Annalie Kruseman 5070585b73
Add separate plot module.
3 years ago
7a7e72d66e
Add data version control to pull data from AWS S3 bucket.
3 years ago
5070585b73
Add separate plot module.
3 years ago
51455b5911
Add project.
3 years ago
5070585b73
Add separate plot module.
3 years ago
5070693b02
Add raw data
3 years ago
51455b5911
Add project.
3 years ago
538ca883c8
Minor change in README.
3 years ago
5070693b02
Add raw data
3 years ago
51455b5911
Add project.
3 years ago
538ca883c8
Minor change in README.
3 years ago
538ca883c8
Minor change in README.
3 years ago
Storage Buckets
Data Pipeline
Legend
DVC Managed File
Git Managed File
Metric
Stage File
External File

README.rst

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  1. Recipe Recommendations
  2. ======================
  3. Description
  4. -----------
  5. Often recipe websites contain a filter to look for recipes. Sometimes
  6. when you look for a recipe you don’t necessarily know what filter you
  7. want to apply exactly. Do you want to filter on recipes with zucchini or
  8. carrots? Maybe you don’t mind what kind of vegetable is used when the
  9. taste of the dishes are sort of similar. The goal of this recommendation
  10. system is to find recipes that are considered similar in taste and
  11. composition. And, to challenge your comfortzone with new recipes. In
  12. order to do that we use the ingredients of each recipe as the features
  13. and calculate how similar to another recipe each recipe is. To build the
  14. features we use the bag of words technique. For the similarity metric we
  15. use the cosine similarity. The advantage of using a cosine similarity
  16. metric is to outweigh the fact that some recipes contain very few
  17. ingredients and others contain many. By converting recipes to vectors we
  18. only consider the angel between two vectors and not the lenght. Hence,
  19. the cosine similarity works well with sparse matrices. The foundation of
  20. this recommendation system is a network graph. A network graph will
  21. provide a representation of how connected, or similar, recipes are. The
  22. resulting network consists only of recipes that exceed the threshold of
  23. a similarity score of 0.5. In this example the relations between recipes
  24. are explored. However, the concept described here can be applied to many
  25. other type of relations between entities or actors.
  26. The result of this recommendation system is presented with the Streamlit
  27. application and contains an interactive network made with Plotly and
  28. Networkx.
  29. Getting Started
  30. ---------------
  31. Prerequisites
  32. ~~~~~~~~~~~~~
  33. Make sure Streamlit is installed and a python version between 3.6 and
  34. 3.8 is running. The python version of this application python 3.8.6. For
  35. all prerequisites see the dependencies in the file pyproject.toml.
  36. Installation
  37. ~~~~~~~~~~~~
  38. To run the application clone this repository.
  39. Download the data with DVC using the following line of code in the same directory in your terminal:
  40. ::
  41. dvc pull
  42. To run the streamlit application and view the recommendation system run:
  43. ::
  44. streamlit run recipes-recommendatons.py
  45. Usage
  46. -----
  47. The recommendation system created here is an example of exploring
  48. relations between between entities. The data used here consists of text,
  49. but the concept can be used for many other applications. Think of a
  50. network of people and their behaviors, or a network of connected roads.
  51. | The below figure shows an example of the output through the Streamlit
  52. application.
  53. | |Recipe Recommendation Network example|
  54. Authors and acknowledgment
  55. --------------------------
  56. Annalie Kruseman
  57. Dataset downloaded from Kaggles ‘What’s Cooking’.
  58. .. |Recipe Recommendation Network example| image:: https://github.com/annalieNK/Recipe-Recommendations/blob/main/example.png?raw=true
Tip!

Press p or to see the previous file or, n or to see the next file

About

Recommendations for recipes displayed in a streamlit application.

Collaborators 1

Comments

Loading...