fBayes 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/.DS_Store +0 -0
  2. data/README.rdoc +6 -3
  3. data/VERSION +1 -1
  4. data/fBayes.gemspec +17 -2
  5. data/lib/.DS_Store +0 -0
  6. data/lib/data/.DS_Store +0 -0
  7. data/lib/data/internalTurnk/.DS_Store +0 -0
  8. data/lib/data/internalTurnk/classifier.rb +55 -0
  9. data/lib/data/internalTurnk/csv_to_data.rb +10 -0
  10. data/lib/data/internalTurnk/data/Beverages +366 -0
  11. data/lib/data/internalTurnk/data/Cereal +46 -0
  12. data/lib/data/internalTurnk/data/Dairy +69 -0
  13. data/lib/data/internalTurnk/data/Fast-foods +29 -0
  14. data/lib/data/internalTurnk/data/Fat, +53 -0
  15. data/lib/data/internalTurnk/data/Fruits +47 -0
  16. data/lib/data/internalTurnk/data/Grains +85 -0
  17. data/lib/data/internalTurnk/data/Meat +132 -0
  18. data/lib/data/internalTurnk/data/Unknown +127 -0
  19. data/lib/data/internalTurnk/data/Vegetables +310 -0
  20. data/lib/data/internalTurnk/results.csv +1703 -0
  21. data/lib/data/sr24/.DS_Store +0 -0
  22. data/lib/data/sr24/classifier.rb +35 -15
  23. data/lib/data/sr24/csv_to_muchidata.rb +8 -0
  24. data/lib/data/sr24/data/baby-foods +192 -192
  25. data/lib/data/sr24/data/baked-products +350 -350
  26. data/lib/data/sr24/data/beef-products +137 -131
  27. data/lib/data/sr24/data/beverages +182 -177
  28. data/lib/data/sr24/data/breakfast-cereals +304 -304
  29. data/lib/data/sr24/data/cereal-grains-and-pasta +101 -101
  30. data/lib/data/sr24/data/dairy-and-egg-products +178 -178
  31. data/lib/data/sr24/data/ethnic-foods +97 -97
  32. data/lib/data/sr24/data/fast-foods +208 -190
  33. data/lib/data/sr24/data/fats-and-oils +146 -146
  34. data/lib/data/sr24/data/finfish-and-shellfish-products +123 -123
  35. data/lib/data/sr24/data/fruits-and-fruit-juices +198 -198
  36. data/lib/data/sr24/data/lamb +73 -73
  37. data/lib/data/sr24/data/legumes-and-legume-products +231 -231
  38. data/lib/data/sr24/data/meals +48 -48
  39. data/lib/data/sr24/data/nut-and-seed-products +104 -104
  40. data/lib/data/sr24/data/pork-products +37 -37
  41. data/lib/data/sr24/data/poultry-products +134 -134
  42. data/lib/data/sr24/data/restaurant-foods +45 -45
  43. data/lib/data/sr24/data/sausages-and-luncheon-meats +140 -140
  44. data/lib/data/sr24/data/snacks +108 -108
  45. data/lib/data/sr24/data/soups +420 -420
  46. data/lib/data/sr24/data/spices-and-herbs +29 -29
  47. data/lib/data/sr24/data/sweets +225 -225
  48. data/lib/data/sr24/data/vegetables-and-vegetable-products +331 -321
  49. data/lib/fBayes.rb +6 -2
  50. data/lib/global_classifier.rb +2 -0
  51. data/spec/accuracy_spec.rb +141 -0
  52. metadata +18 -3
@@ -1,40 +1,40 @@
1
1
  Amaranth
2
2
  Amaranth grain
3
- 4.03
3
+
4
4
  Barley
5
- Barley pearled raw^BARLEYPEARLED
6
- Barley pearled cooked^BARLEYPEARLED
7
- 3.78
8
- Buckwheat groats roasted dry^BUCKWHEAT GROATSRSTD
9
- Buckwheat groats roasted cooked^BUCKWHEAT GROATSRSTD
5
+ Barley pearled raw BARLEYPEARLED
6
+ Barley pearled cooked BARLEYPEARLED
7
+
8
+ Buckwheat groats roasted dry BUCKWHEAT GROATSRSTD
9
+ Buckwheat groats roasted cooked BUCKWHEAT GROATSRSTD
10
10
  Buckwheat flour
11
11
  Bulgur
12
12
  Bulgur
13
13
  Corn
14
14
  Corn bran
15
- Corn flour whole-grain yellow^CORN FLRWHOLE-GRAIN
16
- Corn flour masa enriched white^CORN FLR
17
- Corn flour degermed unenriched yellow^CORN FLR
18
- Corn flour masa unenriched white^CORN FLR
19
- Cornmeal whole-grain yellow^CORNMEALWHOLE-GRAIN
20
- Cornmeal degermed enriched yellow^CORNMEAL
15
+ Corn flour whole-grain yellow CORN FLRWHOLE-GRAIN
16
+ Corn flour masa enriched white CORN FLR
17
+ Corn flour degermed unenriched yellow CORN FLR
18
+ Corn flour masa unenriched white CORN FLR
19
+ Cornmeal whole-grain yellow CORNMEALWHOLE-GRAIN
20
+ Cornmeal degermed enriched yellow CORNMEAL
21
21
  Cornmeal self-rising bolted plain
22
22
  Cornmeal self-rising bolted with wheat flour added
23
23
  Cornmeal self-rising degermed enriched
24
- 4.16
24
+
25
25
  Couscous
26
26
  Couscous
27
- Hominy canned white^HOMINYCANNED
27
+ Hominy canned white HOMINYCANNED
28
28
  Millet
29
29
  Millet
30
30
  Oat bran
31
31
  Oat bran
32
32
  Quinoa
33
- Rice brown long-grain raw^RICE
34
- Rice brown long-grain cooked^RICE
35
- 4.12
36
- Rice brown medium-grain raw^RICE
37
- Rice brown medium-grain cooked^RICE
33
+ Rice brown long-grain raw RICE
34
+ Rice brown long-grain cooked RICE
35
+
36
+ Rice brown medium-grain raw RICE
37
+ Rice brown medium-grain cooked RICE
38
38
  Rice white long-grain regular
39
39
  Rice white long-grain regular
40
40
  Rice white long-grain parboiled
@@ -42,24 +42,24 @@ Rice white long-grain parboiled
42
42
  Rice white long-grain precooked or instant
43
43
  Rice white long-grain precooked or instant
44
44
  Rice white medium-grain raw
45
- Rice white medium-grain cooked^RICE
46
- Rice white short-grain raw^RICE
47
- Rice white short-grain cooked^RICE
48
- Rice white glutinous raw^RICE
49
- Rice white glutinous cooked^RICE
50
- Rice white with pasta dry^RICE
51
- Rice white with pasta cooked^RICE
52
- Rice white steamed Chinese restaurant^RICE
45
+ Rice white medium-grain cooked RICE
46
+ Rice white short-grain raw RICE
47
+ Rice white short-grain cooked RICE
48
+ Rice white glutinous raw RICE
49
+ Rice white glutinous cooked RICE
50
+ Rice white with pasta dry RICE
51
+ Rice white with pasta cooked RICE
52
+ Rice white steamed Chinese restaurant RICE
53
53
  Rice bran
54
54
  Rice flour
55
- 3.86
55
+
56
56
  Rye flour
57
57
  Rye flour
58
58
  Rye flour
59
59
  Semolina
60
- 4.03
61
- Tapioca pearl dry^TAPIOCAPEARL
62
- 3.82
60
+
61
+ Tapioca pearl dry TAPIOCAPEARL
62
+
63
63
  Triticale flour
64
64
  Wheat
65
65
  Wheat
@@ -72,50 +72,50 @@ Wheat germ
72
72
  Wheat flour
73
73
  Wheat flour white all-purpose enriched
74
74
  Wheat flour white all-purpose self-rising
75
- Wheat flour white bread enriched^WHEAT FLR
76
- Wheat flour white cake enriched^WHEAT FLR
77
- Wheat flour white tortilla mix enriched^WHEAT FLR
75
+ Wheat flour white bread enriched WHEAT FLR
76
+ Wheat flour white cake enriched WHEAT FLR
77
+ Wheat flour white tortilla mix enriched WHEAT FLR
78
78
  Wheat
79
79
  Wild rice
80
80
  Wild rice
81
81
  Rice flour
82
- Pasta corn dry^PASTACORN
83
- Pasta corn cooked^PASTACORN
84
- Pasta fresh-refrigerated plain as purchased^PASTA
85
- Pasta fresh-refrigerated plain cooked^PASTA
86
- Pasta fresh-refrigerated spinach as purchased^PASTA
87
- Pasta fresh-refrigerated spinach cooked^PASTA
88
- Pasta homemade made with egg cooked^PASTA
89
- Pasta homemade made without egg cooked^PASTA
90
- Macaroni dry enriched^MACARONIDRY
91
- Macaroni cooked enriched^MACARONICOOKED
82
+ Pasta corn dry PASTACORN
83
+ Pasta corn cooked PASTACORN
84
+ Pasta fresh-refrigerated plain as purchased PASTA
85
+ Pasta fresh-refrigerated plain cooked PASTA
86
+ Pasta fresh-refrigerated spinach as purchased PASTA
87
+ Pasta fresh-refrigerated spinach cooked PASTA
88
+ Pasta homemade made with egg cooked PASTA
89
+ Pasta homemade made without egg cooked PASTA
90
+ Macaroni dry enriched MACARONIDRY
91
+ Macaroni cooked enriched MACARONICOOKED
92
92
  Macaroni protein-fortified dry enriched
93
93
  Macaroni protein-fortified cooked enriched
94
- Macaroni vegetable dry enriched^MACARONI
95
- Macaroni vegetable cooked enriched^MACARONI
96
- Macaroni whole-wheat dry^MACARONIWHOLE-WHEAT
97
- Macaroni whole-wheat cooked^MACARONIWHOLE-WHEAT
98
- Noodles egg dry enriched^NOODLES
99
- Noodles egg cooked enriched^NOODLES
94
+ Macaroni vegetable dry enriched MACARONI
95
+ Macaroni vegetable cooked enriched MACARONI
96
+ Macaroni whole-wheat dry MACARONIWHOLE-WHEAT
97
+ Macaroni whole-wheat cooked MACARONIWHOLE-WHEAT
98
+ Noodles egg dry enriched NOODLES
99
+ Noodles egg cooked enriched NOODLES
100
100
  Noodles egg spinach dry
101
101
  Noodles egg spinach cooked
102
- Noodles chinese chow mein^NOODLESCHINESE
103
- Noodles japanese soba dry^NOODLES
104
- Noodles japanese soba cooked^NOODLES
105
- Noodles japanese somen dry^NOODLES
106
- Noodles japanese somen cooked^NOODLES
107
- Noodles flat crunchy Chinese restaurant^NOODLES
108
- Spaghetti dry enriched^SPAGHETTIDRY
109
- Spaghetti cooked enriched without added salt^SPAGHETTI
110
- Spaghetti protein-fortified dry enriched (n x 5.70)^SPAGHETTI
111
- Spaghetti protein-fortified cooked enriched (N x 5.70)^SPAGHETTI
112
- Spaghetti whole-wheat dry^SPAGHETTIWHOLE-WHEAT
113
- Spaghetti whole-wheat cooked^SPAGHETTIWHOLE-WHEAT
114
- Spaghetti spinach dry^SPAGHETTISPINACH
115
- Spaghetti spinach cooked^SPAGHETTISPINACH
116
- Wheat flours bread unenriched^WHEAT FLOURSBREAD
117
- 3.95
118
- 3.95
102
+ Noodles chinese chow mein NOODLESCHINESE
103
+ Noodles japanese soba dry NOODLES
104
+ Noodles japanese soba cooked NOODLES
105
+ Noodles japanese somen dry NOODLES
106
+ Noodles japanese somen cooked NOODLES
107
+ Noodles flat crunchy Chinese restaurant NOODLES
108
+ Spaghetti dry enriched SPAGHETTIDRY
109
+ Spaghetti cooked enriched without added salt SPAGHETTI
110
+ Spaghetti protein-fortified dry enriched (n x ) SPAGHETTI
111
+ Spaghetti protein-fortified cooked enriched (N x ) SPAGHETTI
112
+ Spaghetti whole-wheat dry SPAGHETTIWHOLE-WHEAT
113
+ Spaghetti whole-wheat cooked SPAGHETTIWHOLE-WHEAT
114
+ Spaghetti spinach dry SPAGHETTISPINACH
115
+ Spaghetti spinach cooked SPAGHETTISPINACH
116
+ Wheat flours bread unenriched WHEAT FLOURSBREAD
117
+
118
+
119
119
  Oat flour
120
120
  Rice noodles
121
121
  Rice noodles
@@ -130,24 +130,24 @@ Macaroni protein-fortified dry enriched
130
130
  Macaroni protein-fortified cooked enriched
131
131
  Noodles egg cooked enriched
132
132
  Corn
133
- Corn flour whole-grain blue (harina de maiz morado)^CORN FLRWHOLE-GRAIN
134
- Corn flour whole-grain white^CORN FLRWHOLE-GRAIN
135
- Corn flour masa enriched yellow^CORN FLR
136
- Cornmeal whole-grain white^CORNMEALWHOLE-GRAIN
137
- Spaghetti cooked enriched with added salt^SPAGHETTI
138
- Cornmeal degermed enriched white^CORNMEAL
133
+ Corn flour whole-grain blue (harina de maiz morado) CORN FLRWHOLE-GRAIN
134
+ Corn flour whole-grain white CORN FLRWHOLE-GRAIN
135
+ Corn flour masa enriched yellow CORN FLR
136
+ Cornmeal whole-grain white CORNMEALWHOLE-GRAIN
137
+ Spaghetti cooked enriched with added salt SPAGHETTI
138
+ Cornmeal degermed enriched white CORNMEAL
139
139
  Cornmeal self-rising bolted plain
140
140
  Cornmeal self-rising bolted with wheat flour added
141
141
  Cornmeal self-rising degermed enriched
142
- Hominy canned yellow^HOMINYCANNED
142
+ Hominy canned yellow HOMINYCANNED
143
143
  Rice white long-grain regular
144
144
  Wheat flour white all-purpose enriched
145
- Macaroni cooked unenriched^MACARONICKD
146
- Noodles egg dry unenriched^NOODLES
145
+ Macaroni cooked unenriched MACARONICKD
146
+ Noodles egg dry unenriched NOODLES
147
147
  Noodles egg cooked unenriched
148
- Spaghetti dry unenriched^SPAGHETTIDRY
149
- Spaghetti cooked unenriched without added salt^SPAGHETTI
150
- Cornmeal degermed unenriched yellow^CORNMEAL
148
+ Spaghetti dry unenriched SPAGHETTIDRY
149
+ Spaghetti cooked unenriched without added salt SPAGHETTI
150
+ Cornmeal degermed unenriched yellow CORNMEAL
151
151
  Rice white long-grain regular
152
152
  Rice white long-grain regular
153
153
  Rice white long-grain parboiled
@@ -157,28 +157,28 @@ Rice white medium-grain cooked
157
157
  Rice white short-grain raw
158
158
  Rice white short-grain cooked
159
159
  Semolina
160
- Wheat flour white all-purpose unenriched^WHEAT FLR
161
- Macaroni dry unenriched^MACARONIDRY
160
+ Wheat flour white all-purpose unenriched WHEAT FLR
161
+ Macaroni dry unenriched MACARONIDRY
162
162
  Noodles egg cooked unenriched
163
- Spaghetti cooked unenriched with added salt^SPAGHETTI
164
- Cornmeal degermed unenriched white^CORNMEAL
165
- Spaghetti protein-fortified cooked enriched (n x 6.25)^SPAGHETTI
163
+ Spaghetti cooked unenriched with added salt SPAGHETTI
164
+ Cornmeal degermed unenriched white CORNMEAL
165
+ Spaghetti protein-fortified cooked enriched (n x ) SPAGHETTI
166
166
  Rice white long-grain regular
167
167
  Wheat flour white all-purpose enriched
168
- Spaghetti protein-fortified dry enriched (n x 6.25)^SPAGHETTI
169
- Wheat flour white (industrial) 9% protein bleached
170
- Wheat flour white (industrial) 9% protein bleached
171
- Wheat flour white (industrial) 10% protein bleached
172
- Wheat flour white (industrial) 10% protein bleached
173
- Wheat flour white (industrial) 10% protein unbleached
174
- Wheat flour white (industrial) 11.5% protein bleached
175
- Wheat flour white (industrial) 11.5% protein bleached
176
- Wheat flour white (industrial) 11.5% protein unbleached
177
- Wheat flour white (industrial) 13% protein bleached
178
- Wheat flour white (industrial) 13% protein bleached
179
- Wheat flour white (industrial) 15% protein bleached
180
- Wheat flour white (industrial) 15% protein bleached
181
- 4.0
182
- 4.07
183
- Wheat flour whole-grain soft wheat^WHEAT FLRWHOLE-GRAIN
184
- 0
168
+ Spaghetti protein-fortified dry enriched (n x ) SPAGHETTI
169
+ Wheat flour white (industrial) % protein bleached
170
+ Wheat flour white (industrial) % protein bleached
171
+ Wheat flour white (industrial) % protein bleached
172
+ Wheat flour white (industrial) % protein bleached
173
+ Wheat flour white (industrial) % protein unbleached
174
+ Wheat flour white (industrial) % protein bleached
175
+ Wheat flour white (industrial) % protein bleached
176
+ Wheat flour white (industrial) % protein unbleached
177
+ Wheat flour white (industrial) % protein bleached
178
+ Wheat flour white (industrial) % protein bleached
179
+ Wheat flour white (industrial) % protein bleached
180
+ Wheat flour white (industrial) % protein bleached
181
+
182
+
183
+ Wheat flour whole-grain soft wheat WHEAT FLRWHOLE-GRAIN
184
+