Skip to content

Commit 04fc9b4

Browse files
committed
added coffee
1 parent e8afaef commit 04fc9b4

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

classics/wine_quality/text_gen.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import pandas as pd
2+
from mindsdb_native import Predictor
3+
4+
5+
mdb = Predictor(name='description_predictor')
6+
7+
mdb.learn(from_data=pd.read_csv('processed_data/train.csv'), to_predict='description')
8+
9+
predictions = mdb.predict('processed_data/test.csv')
10+
11+
for pred in predictions:
12+
print(pred['description'])

others/coffee_plackett/data.tsv

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
Coffe_Malt Chocolat Gold Medium_Barley Dark_Barley Dandelion Beets Chicory_Roots Figs Dates Cacao Grease on top Floral_aroma Musty/Earthy Roasted Grains Roasted Malt Fruity_aroma Sour_aroma Spicy Sweet_aroma Sour_flavour Bitter Roasted Sweet_flavour Fruity_flavour Floral_flavour Cocoa Nutty Dry mouth Persistance
2+
1 1 0 1 0 0 0 1 1 1 0 1 0 1 0 2 0 1 0 0 0 2 1 4 0 0 0 0 0 1
3+
0 0 0 1 1 1 0 1 1 0 1 0 1 1 0 2 0 0 0 0 2 3 2 2 0 0 1 0 0 1
4+
0 1 1 0 1 0 0 0 1 1 1 0 1 1 0 1 0 0 0 0 0 2 1 4 0 0 1 0 0 0
5+
0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0 1 1 1 2 0 0 0 0 0 2 2 4 0 0 1 0 0 1
6+
0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0 1 1 0 1 0 0 0 1 0 3 2 3 0 0 1 0 2 1
7+
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
8+
1 0 1 1 0 1 0 0 0 1 1 0 1 0 0 2 0 0 0 0 2 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0 0 0 1 1 1 0 1 2 1 1 1 0 1 0 0 1 2 1 0 0 0 0 0 0 0
41+
0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 1 0 0 1 0 0 0 1 1 1 3 1 0 0 0 2 0 1 0
42+
1 1 0 1 1 0 1 0 0 0 1 0 0 1 1 0 0 1 1 0 0 3 2 0 0 0 1 0 1 0
43+
1 0 0 0 1 1 1 0 1 1 0 0 2 1 0 1 0 0 0 0 0 3 2 1 0 1 0 0 0 0

others/coffee_plackett/mindsdb_acc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from mindsdb_native import Predictor
2+
3+
mdb = Predictor(name='coffee_predictor')
4+
mdb.learn(from_data='data.tsv', to_predict=['Coffe_Malt', 'Chocolat', 'Gold', 'Medium_Barley', 'Dark_Barley', 'Dandelion', 'Beets', 'Chicory_Roots', 'Figs'])

0 commit comments

Comments
 (0)