Open leedtan opened 10 years ago
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)
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.
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~
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.