{"id":13935041,"url":"https://github.com/jaanli/food2vec","last_synced_at":"2025-04-09T22:19:39.841Z","repository":{"id":63498000,"uuid":"79263545","full_name":"jaanli/food2vec","owner":"jaanli","description":":hamburger: ","archived":false,"fork":false,"pushed_at":"2022-06-10T10:22:40.000Z","size":87027,"stargazers_count":225,"open_issues_count":2,"forks_count":48,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T22:19:10.813Z","etag":null,"topics":["embeddings","food","machine-learning"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaanli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-17T19:28:52.000Z","updated_at":"2025-02-26T00:15:21.000Z","dependencies_parsed_at":"2022-11-20T03:16:22.577Z","dependency_job_id":null,"html_url":"https://github.com/jaanli/food2vec","commit_stats":null,"previous_names":["altosaar/food2vec"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaanli%2Ffood2vec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaanli%2Ffood2vec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaanli%2Ffood2vec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaanli%2Ffood2vec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaanli","download_url":"https://codeload.github.com/jaanli/food2vec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119572,"owners_count":21050793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embeddings","food","machine-learning"],"created_at":"2024-08-07T23:01:22.094Z","updated_at":"2025-04-09T22:19:39.821Z","avatar_url":"https://github.com/jaanli.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook"],"sub_categories":[],"readme":"# food2vec\nFood vectors. Live demo at [https://altosaar.github.io/food2vec/](https://altosaar.github.io/food2vec/), blog post with more information and plots here: https://jaan.io/food2vec-augmented-cooking-machine-intelligence/\n\n## Usage\nTrain a model on the recipes dataset, replicate the results from the [blog post](https://jaan.io/food2vec-augmented-cooking-machine-intelligence/):\n```\nconda env create -f environment.yml\nconda activate food2vec\ngit clone git@github.com:altosaar/food2vec.git\necho \"[submodule \\\"src/sentence_word2vec\\\"]\n        path = src/sentence_word2vec\n        url = https://github.com/altosaar/sentence_word2vec.git\ngit submodule update --init\ncd food2vec/src\n./run_fasttext.sh\n```\n\n## Visualization \u0026 embedding exploration tools\n```\n# run t-sne and make the plots for the ingredient embeddings\njupyter notebook ./src/plot_ingredients_recipes.ipynb\n```\n\n## Embedding plot.ly plots to host them yourself\nhttps://gist.github.com/altosaar/67d8456ad28acd1abb497f1950d8de8a\n\n## Contributing\nPull requests and all feedback welcome! Please file an issue if you run into problems replicating the results.\n\n## Ideas on next steps\n* get more data\n* convert jupyter notebook for plotting into one python script\n* write scripts to figure out the right vocabulary\n* fit a better model (e.g. multi-class regression in pytorch) -- if you manage to get better results than the live demo at https://altosaar.github.io/food2vec/ just submit a pull request with the new `assets/data/wordVecs.js` and I'll happily update it :)\n* compare the above model embeddings to the current embeddings\n* make the UI of the website more user-friendly and mobile-friendly\n\n## Acknowledgments\nThanks to Anthony for open-sourcing a [javascript embedding browser](https://github.com/turbomaze/word2vecjson) -- the one here is heavily based on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaanli%2Ffood2vec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaanli%2Ffood2vec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaanli%2Ffood2vec/lists"}