Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter by food category #1

Open
leedtan opened this issue Jan 28, 2014 · 3 comments
Open

filter by food category #1

leedtan opened this issue Jan 28, 2014 · 3 comments

Comments

@leedtan
Copy link

leedtan commented Jan 28, 2014

do either databased let you filter based on larger categories? like turn off nuts, dairy, beef, fruit, etc? instead of having to manually keep removing the nut recommendations until the user gets one they want. We should implement a food-category filter if the db allows it.

@leedtan
Copy link
Author

leedtan commented Jan 28, 2014

also when you optimize users might not want to see a diet of pure vegetables, they probably enjoy a diet more if you can somehow put a weight in your algorithm into trying to have a diet contain multiple food groups

like priority = SUM(individual vitamin * % im lacking in vitamin) - (amount i have in this food group) or something

but some users might want just the PURE OPTIMAL recommendation, or at least to know what that is.

Maybe we could add a scalar value for how much the user prefers his foods to come from various categories

And possibly a second scalar value for how much they prefer different foods (instead of say, 30% of their calories coming from spinach if spinach turns out to be optimal on the low-sugar, high-fiber, high-macronutrient front or something)

@asadoughi
Copy link
Owner

I haven't read sr26_doc.pdf but it appears the items code are in groups. For example, 08 is the food group for breakfast cereals, where 08059 is the entire key code.

@asadoughi
Copy link
Owner

From FD_GROUP.txt:

~0100~^~Dairy and Egg Products~
~0200~^~Spices and Herbs~
~0300~^~Baby Foods~
~0400~^~Fats and Oils~
~0500~^~Poultry Products~
~0600~^~Soups, Sauces, and Gravies~
~0700~^~Sausages and Luncheon Meats~
~0800~^~Breakfast Cereals~
~0900~^~Fruits and Fruit Juices~
~1000~^~Pork Products~
~1100~^~Vegetables and Vegetable Products~
~1200~^~Nut and Seed Products~
~1300~^~Beef Products~
~1400~^~Beverages~
~1500~^~Finfish and Shellfish Products~
~1600~^~Legumes and Legume Products~
~1700~^~Lamb, Veal, and Game Products~
~1800~^~Baked Products~
~1900~^~Sweets~
~2000~^~Cereal Grains and Pasta~
~2100~^~Fast Foods~
~2200~^~Meals, Entrees, and Side Dishes~
~2500~^~Snacks~
~3500~^~American Indian/Alaska Native Foods~
~3600~^~Restaurant Foods~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@asadoughi @leedtan and others