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,135 +1,135 @@
1
1
  Agutuk
2
2
  Agutuk
3
- 6.25
4
- Bear black meat (Alaska Native)^BEARBLACK
5
- Bear polar meat raw (Alaska Native)^BEAR
6
- Whale beluga meat dried (Alaska Native)^WHALE
7
- Whale beluga eyes (Alaska Native)^WHALEBELUGA
8
- Whale beluga meat raw (Alaska Native)^Whale
9
- Whale beluga flipper raw (Alaska Native)^WHALE
10
- Whale beluga liver raw (Alaska Native)^WHALE
11
- Oil beluga whale (Alaska Native)^OILBELUGA
12
- Blackberries wild raw (Alaska Native)^BLACKBERRIESWILD
13
- Fish blackfish whole (Alaska Native)^FISHBLACKFISH
14
- Blueberries wild frozen (Alaska Native)^BLUEBERRIESWILD
15
- Caribou bone marrow raw (Alaska Native)^CARIBOUBONE MARROW
16
- Caribou eye raw (Alaska Native)^CARIBOUEYE
17
- Caribou liver raw (Alaska Native)^CARIBOULIVER
3
+
4
+ Bear black meat (Alaska Native) BEARBLACK
5
+ Bear polar meat raw (Alaska Native) BEAR
6
+ Whale beluga meat dried (Alaska Native) WHALE
7
+ Whale beluga eyes (Alaska Native) WHALEBELUGA
8
+ Whale beluga meat raw (Alaska Native) Whale
9
+ Whale beluga flipper raw (Alaska Native) WHALE
10
+ Whale beluga liver raw (Alaska Native) WHALE
11
+ Oil beluga whale (Alaska Native) OILBELUGA
12
+ Blackberries wild raw (Alaska Native) BLACKBERRIESWILD
13
+ Fish blackfish whole (Alaska Native) FISHBLACKFISH
14
+ Blueberries wild frozen (Alaska Native) BLUEBERRIESWILD
15
+ Caribou bone marrow raw (Alaska Native) CARIBOUBONE MARROW
16
+ Caribou eye raw (Alaska Native) CARIBOUEYE
17
+ Caribou liver raw (Alaska Native) CARIBOULIVER
18
18
  Stew/soup
19
- Caribou tongue raw (Alaska Native)^CARIBOUTONGUE
20
- Chiton leathery gumboots (Alaska Native)^CHITONLEATHERY
21
- Cloudberries raw (Alaska Native)^CLOUDBERRIESRAW (ALASKA NATIVE)^baked apple berry yellowberry
19
+ Caribou tongue raw (Alaska Native) CARIBOUTONGUE
20
+ Chiton leathery gumboots (Alaska Native) CHITONLEATHERY
21
+ Cloudberries raw (Alaska Native) CLOUDBERRIESRAW (ALASKA NATIVE) baked apple berry yellowberry
22
22
  Cockles
23
- Cranberries wild bush raw (Alaska Native)^CRANBERRIES
24
- Cranberry low bush or lingenberry raw (Alaska Native)^CRANBERRYLO BUSH OR LINGENBERRY
25
- Fish devilfish meat (Alaska Native)^FISHDEVILFISH
26
- Fireweed young leaves raw (Alaska Native)^FIREWEEDYOUNG LEAVES
27
- Fish herring eggs on giant kelp Pacific (Alaska Native)^FISHHERRING EGGS ON GIANT KELP
28
- Fish herring eggs Pacific dry (Alaska Native)^FISH
29
- Fish herring eggs Pacific plain (Alaska Native)^FISH
23
+ Cranberries wild bush raw (Alaska Native) CRANBERRIES
24
+ Cranberry low bush or lingenberry raw (Alaska Native) CRANBERRYLO BUSH OR LINGENBERRY
25
+ Fish devilfish meat (Alaska Native) FISHDEVILFISH
26
+ Fireweed young leaves raw (Alaska Native) FIREWEEDYOUNG LEAVES
27
+ Fish herring eggs on giant kelp Pacific (Alaska Native) FISHHERRING EGGS ON GIANT KELP
28
+ Fish herring eggs Pacific dry (Alaska Native) FISH
29
+ Fish herring eggs Pacific plain (Alaska Native) FISH
30
30
  Fish herring Pacific flesh
31
31
  Huckleberries
32
- Fish lingcod meat raw (Alaska Native)^FISH
33
- Fish lingcod liver (Alaska Native)^FISHLINGCOD
32
+ Fish lingcod meat raw (Alaska Native) FISH
33
+ Fish lingcod liver (Alaska Native) FISHLINGCOD
34
34
  Stew
35
- Moose meat raw (Alaska Native)^MOOSEMEAT
35
+ Moose meat raw (Alaska Native) MOOSEMEAT
36
36
  Mashu roots
37
- Moose liver braised (Alaska Native)^MOOSELIVER
37
+ Moose liver braised (Alaska Native) MOOSELIVER
38
38
  Mouse nuts
39
39
  Mouse nuts
40
- 6.25
41
- Seal bearded (Oogruk) meat dried (Alaska Native)^SEAL
42
- Seal bearded (Oogruk) meat raw (Alaska Native)^SEAL
40
+
41
+ Seal bearded (Oogruk) meat dried (Alaska Native) SEAL
42
+ Seal bearded (Oogruk) meat raw (Alaska Native) SEAL
43
43
  Oil
44
44
  Oopah (tunicate)
45
- Owl horned flesh raw (Alaska Native)^OWL
46
- Fish pike northern liver (Alaska Native)^FISH
47
- Rhubarb wild leaves (Alaska Native)^RHUBARBWILD
48
- Fish salmon tipnuk fermented (Alaska Native)^FISH
45
+ Owl horned flesh raw (Alaska Native) OWL
46
+ Fish pike northern liver (Alaska Native) FISH
47
+ Rhubarb wild leaves (Alaska Native) RHUBARBWILD
48
+ Fish salmon tipnuk fermented (Alaska Native) FISH
49
49
  Fish salmon king chinook
50
50
  Fish salmon king chinook
51
51
  Fish salmon king chinook
52
52
  Fish salmon king chinook
53
- Duck scoter white-winged meat (Alaska Native)^DUCK
53
+ Duck scoter white-winged meat (Alaska Native) DUCK
54
54
  Sea cucumber
55
- Seal ringed meat (Alaska Native)^SEALRINGED
56
- Seal ringed liver (Alaska Native)^SEALRINGED
57
- Soup fish homemade (Alaska Native)^SOUPFISH
55
+ Seal ringed meat (Alaska Native) SEALRINGED
56
+ Seal ringed liver (Alaska Native) SEALRINGED
57
+ Soup fish homemade (Alaska Native) SOUPFISH
58
58
  Sourdock
59
- Squirrel ground meat (Alaska Native)^SQUIRRELGROUND
60
- Tea tundra herb and laborador combination (Alaska Native)^TEATUNDRA
61
- Walrus meat dried (Alaska Native)^WALRUSMEAT
62
- Deer (venison) sitka raw (Alaska Native)^DEER (VENISON)SITKA
63
- Walrus meat raw (Alaska Native)^WALRUSMEAT
59
+ Squirrel ground meat (Alaska Native) SQUIRRELGROUND
60
+ Tea tundra herb and laborador combination (Alaska Native) TEATUNDRA
61
+ Walrus meat dried (Alaska Native) WALRUSMEAT
62
+ Deer (venison) sitka raw (Alaska Native) DEER (VENISON)SITKA
63
+ Walrus meat raw (Alaska Native) WALRUSMEAT
64
64
  Walrus
65
- Walrus liver raw (Alaska Native)^WALRUSLIVER
65
+ Walrus liver raw (Alaska Native) WALRUSLIVER
66
66
  Oil
67
- Whale bowhead subcutaneous fat (blubber) (Alaska Native)^WHALEBOWHEAD
68
- Whale bowhead skin and subcutaneous fat (muktuk) (Alaska Native)^WHALEBOWHEAD
69
- Oil whale bowhead (Alaska Native)^OILWHALE
70
- Fish whitefish broad liver (Alaska Native)^FISH
71
- Fish whitefish mixed species raw (Alaska Native)^FISH
67
+ Whale bowhead subcutaneous fat (blubber) (Alaska Native) WHALEBOWHEAD
68
+ Whale bowhead skin and subcutaneous fat (muktuk) (Alaska Native) WHALEBOWHEAD
69
+ Oil whale bowhead (Alaska Native) OILWHALE
70
+ Fish whitefish broad liver (Alaska Native) FISH
71
+ Fish whitefish mixed species raw (Alaska Native) FISH
72
72
  Fish whitefish broad head
73
73
  Willow
74
- Willow young leaves chopped (Alaska Native)^WILLOWYOUNG LEAVES
74
+ Willow young leaves chopped (Alaska Native) WILLOWYOUNG LEAVES
75
75
  Mush
76
76
  Cornmeal
77
77
  Melon
78
- 6.25
78
+
79
79
  Corn
80
- Corn white steamed (Navajo)^CORNWHITE
80
+ Corn white steamed (Navajo) CORNWHITE
81
81
  Cornmeal
82
82
  Cornmeal
83
- Squash Indian raw (Navajo)^SQUASHINDIAN
84
- Squash Indian cooked boiled (Navajo)^SQUASH
83
+ Squash Indian raw (Navajo) SQUASHINDIAN
84
+ Squash Indian cooked boiled (Navajo) SQUASH
85
85
  Bread
86
- Mutton cooked roasted (Navajo)^MUTTONCKD
86
+ Mutton cooked roasted (Navajo) MUTTONCKD
87
87
  Frybread
88
88
  Tortilla
89
89
  Stew
90
90
  Stew
91
- Stew mutton corn squash (Navajo)^STEW
92
- 6.25
91
+ Stew mutton corn squash (Navajo) STEW
92
+
93
93
  Stew
94
- Fish halibut raw with skin (Alaska Native)^FISH
95
- Fish salmon coho (silver) raw (Alaska Native)^FISH
96
- Fish salmon sockeye (red) raw (Alaska Native)^FISH
97
- Fish Salmon Chum raw (Alaska Native)^FISH
98
- Fish salmon king (chinook) raw (Alaska Native)^FISH
94
+ Fish halibut raw with skin (Alaska Native) FISH
95
+ Fish salmon coho (silver) raw (Alaska Native) FISH
96
+ Fish salmon sockeye (red) raw (Alaska Native) FISH
97
+ Fish Salmon Chum raw (Alaska Native) FISH
98
+ Fish salmon king (chinook) raw (Alaska Native) FISH
99
99
  Salmonberries
100
- Blueberries wild raw (Alaska Native)^BLUEBERRIESWILD
100
+ Blueberries wild raw (Alaska Native) BLUEBERRIESWILD
101
101
  Oil
102
102
  Fish salmon red canned
103
- Fish whitefish eggs (Alaska Native)^FISHWHITEFISH
104
- Caribou rump meat half dried (Alaska Native)^CARIBOURUMP MEAT
105
- Caribou shoulder meat dried (Alaska Native)^CARIBOUSHLDR MEAT
106
- Caribou hind quarter meat raw (Alaska Native)^CARIBOUHIND QUARTER MEAT
103
+ Fish whitefish eggs (Alaska Native) FISHWHITEFISH
104
+ Caribou rump meat half dried (Alaska Native) CARIBOURUMP MEAT
105
+ Caribou shoulder meat dried (Alaska Native) CARIBOUSHLDR MEAT
106
+ Caribou hind quarter meat raw (Alaska Native) CARIBOUHIND QUARTER MEAT
107
107
  Seal bearded (Oogruk) meat dried
108
- Fish whitefish dried (Alaska Native)^FISHWHITEFISH
108
+ Fish whitefish dried (Alaska Native) FISHWHITEFISH
109
109
  Fish salmon red (sockeye)
110
110
  Fish salmon red (sockeye)
111
111
  Fish salmon king with skin
112
- Fish sheefish raw (Alaska Native)^FISHSHEEFISH
112
+ Fish sheefish raw (Alaska Native) FISHSHEEFISH
113
113
  Seal bearded (Oogruk) meat low quadrant
114
- Fish salmon chum dried (Alaska Native)^FISH
115
- Elk free range ground cooked patties (Shoshone Bannock)^ELK
116
- Elk free range ground raw (Shoshone Bannock)^ELK
117
- Buffalo free range top round steak raw (Shoshone Bannock)^BUFFALO
118
- Seal bearded (Oogruk) meat partially dried (Alaska Native)^SEAL
119
- Buffalo free range top round steak cooked (Shoshone Bannock)^BUFFALO
114
+ Fish salmon chum dried (Alaska Native) FISH
115
+ Elk free range ground cooked patties (Shoshone Bannock) ELK
116
+ Elk free range ground raw (Shoshone Bannock) ELK
117
+ Buffalo free range top round steak raw (Shoshone Bannock) BUFFALO
118
+ Seal bearded (Oogruk) meat partially dried (Alaska Native) SEAL
119
+ Buffalo free range top round steak cooked (Shoshone Bannock) BUFFALO
120
120
  Elk free range roast eye of round
121
121
  Elk free range roast eye of round
122
- Chokecherries raw pitted (Shoshone Bannock)^CHOKECHERRIESRAW
123
- Steelhead trout dried flesh (Shoshone Bannock)^STEELHEAD TROUTDRIED
124
- Steelhead trout boiled canned (Alaska Native)^STEELHEAD TROUTBLD
125
- 6.25
126
- Corn dried yellow (Northern Plains Indians)^CORNDRIED
122
+ Chokecherries raw pitted (Shoshone Bannock) CHOKECHERRIESRAW
123
+ Steelhead trout dried flesh (Shoshone Bannock) STEELHEAD TROUTDRIED
124
+ Steelhead trout boiled canned (Alaska Native) STEELHEAD TROUTBLD
125
+
126
+ Corn dried yellow (Northern Plains Indians) CORNDRIED
127
127
  Smelt
128
128
  Frybread
129
- 0
129
+
130
130
  Tennis Bread
131
- Fish halibut cooked with skin (Alaska Native)^FISH
132
- Salmon red (sockeye) filets with skin smoked (Alaska Native)^SALMON
131
+ Fish halibut cooked with skin (Alaska Native) FISH
132
+ Salmon red (sockeye) filets with skin smoked (Alaska Native) SALMON
133
133
  Agave
134
134
  Agave
135
135
  Agave
@@ -142,24 +142,24 @@ Prairie Turnips
142
142
  Prairie Turnips
143
143
  Raspberries
144
144
  Rose Hips
145
- Chokecherries raw pitted (Northern Plains Indians)^CHOKECHERRIESRAW
145
+ Chokecherries raw pitted (Northern Plains Indians) CHOKECHERRIESRAW
146
146
  Stinging Nettles
147
147
  Plums
148
148
  Pinon Nuts
149
- Caribou hind quarter meat cooked (Alaska Native)^CARIBOU
149
+ Caribou hind quarter meat cooked (Alaska Native) CARIBOU
150
150
  Agutuk
151
- Sea lion Steller liver (Alaska Native)^SEA LIONSTELLER
152
- Sea lion Steller kidney (Alaska Native)^SEA LIONSTELLER
153
- Sea lion Steller heart (Alaska Native)^SEA LIONSTELLER
154
- Sea lion Steller meat (Alaska Native)^SEA LIONSTELLER
155
- Sea lion Steller meat with fat (Alaska Native)^SEA LIONSTELLER
156
- Sea lion Steller fat (Alaska Native)^SEA LIONSTELLER
151
+ Sea lion Steller liver (Alaska Native) SEA LIONSTELLER
152
+ Sea lion Steller kidney (Alaska Native) SEA LIONSTELLER
153
+ Sea lion Steller heart (Alaska Native) SEA LIONSTELLER
154
+ Sea lion Steller meat (Alaska Native) SEA LIONSTELLER
155
+ Sea lion Steller meat with fat (Alaska Native) SEA LIONSTELLER
156
+ Sea lion Steller fat (Alaska Native) SEA LIONSTELLER
157
157
  Wocas dried seeds Oregon Yellow pond lily
158
158
  Hazelnuts
159
159
  Piki bread
160
160
  Wocas tuber cooked Oregon
161
- Stew pinto bean and hominy badufsuki (Hopi)^STEWPINTO BEAN & HOMINY
161
+ Stew pinto bean and hominy badufsuki (Hopi) STEWPINTO BEAN & HOMINY
162
162
  Tamales
163
- Tea herbal brewed Hohoysi (Hopi)^TEA
164
- Tortilla blue corn Sakwavikaviki (Hopi)^TORTILLABLUE CORN
165
- Bread blue corn somiviki (Hopi)^BREADBLUE CORN
163
+ Tea herbal brewed Hohoysi (Hopi) TEA
164
+ Tortilla blue corn Sakwavikaviki (Hopi) TORTILLABLUE CORN
165
+ Bread blue corn somiviki (Hopi) BREADBLUE CORN