Rozpoczęcie prac nad drzewem decyzyjnym, budowa trainsetu

This commit is contained in:
andrzej 2020-05-09 18:38:00 +02:00
parent 23a8321e2d
commit 8f1767c50f
3 changed files with 289 additions and 2 deletions

View File

@ -0,0 +1,37 @@
from sklearn.tree import DecisionTreeClassifier, plot_tree, export_graphviz
from sklearn.externals.six import StringIO
from IPython.display import Image
import pandas as pd
import numpy as np
import pydotplus
from sklearn.model_selection import train_test_split
from sklearn import metrics
data = StringIO()
cols_names= ["product", "category", "temperature", "humidity", "chance_of_survive", "place_here"]
# import pdb
# pdb.set_trace()
products = pd.read_csv("trainset/trainset.csv", header=0, sep=",", names=cols_names)
feature_cols = ["category", "temperature", "humidity"]
X = pd.get_dummies(products[feature_cols])
y = products.place_here
dummies_names = X.columns.tolist()
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=1, shuffle=True)
clf = DecisionTreeClassifier(criterion="entropy", ccp_alpha=0.02, max_features=4)
clf = clf.fit(X_train, y_train)
y_pred = clf.predict(X_test)
print("Correctly placed in : {} % of cases".format(
round(100 * metrics.accuracy_score(y_test, y_pred), 3)
)
)
export_graphviz(clf, out_file=data, filled=True, rounded=True, special_characters=True, feature_names=dummies_names)
graph = pydotplus.graph_from_dot_data(data.getvalue())
graph.write_png('Ułożenie.png')
Image(graph.create_png())

View File

@ -0,0 +1,250 @@
product,category,temperature,humidity,chance_of_survive,place_here
food,normal, 20, 0.5, 0.85, 1
food,normal,25, 0.7, 0.6, 0
electronic,keep_dry,20, 0.3, 0.95, 1
wood,normal,24, 0.5, 0.9, 1
electronic,keep_dry,25, 0.7, 0.4, 0
ammo,flammable,28, 0.4, 0.2, 0
ammo,flammable,27, 0.4, 0.25, 0
ammo,flammable,27, 0.6, 0.22, 0
ammo,flammable,22, 0.5, 0.8, 1
ammo,flammable,23, 0.5, 0.7, 0
clothes,keep_dry,25, 0.6, 0.4, 0
clothes,keep_dry,25, 0.7, 0.25, 0
clothes,keep_dry,25, 0.7, 0.25, 0
electronic,keep_dry,22,0.5,0.7,0
electronic,keep_dry,22,0.7,0.45,0
electronic,keep_dry,22,0.3,0.85,1
electronic,keep_dry,22,0.2,0.99,1
clothes,keep_dry,25, 0.7, 0.25, 0
clothes,keep_dry,25, 0.7, 0.25, 0
clothes,keep_dry,24, 0.2, 0.95, 0
frozen_food,freezed,24, 0.5, 0.001, 0
frozen_food,freezed,22, 0.5, 0.001, 0
frozen_food,freezed, 20, 0.5, 0.004, 0
frozen_food,freezed,-15, 0.3, 0.999, 1
frozen_food,freezed,-15, 0.2, 0.999, 1
frozen_food,freezed,-10, 0.3, 0.995, 1
frozen_food,freezed, -15, 0.2, 1.00, 1
frozen_food,freezed,24, 0.5, 0.001, 0
frozen_food,freezed,22, 0.5, 0.001, 0
frozen_food,freezed, 20, 0.5, 0.004, 0
frozen_food,freezed,-15, 0.3, 0.999, 1
frozen_food,freezed,-15, 0.2, 0.999, 1
frozen_food,freezed,-10, 0.3, 0.995, 1
frozen_food,freezed, -15, 0.2, 1.00, 1
frozen_food,freezed,24, 0.5, 0.001, 0
frozen_food,freezed,22, 0.5, 0.001, 0
frozen_food,freezed, 20, 0.5, 0.004, 0
frozen_food,freezed,-15, 0.3, 0.999, 1
frozen_food,freezed,-15, 0.2, 0.999, 1
frozen_food,freezed,-10, 0.3, 0.995, 1
frozen_food,freezed, -15, 0.2, 1.00, 1
clothes,keep_dry,28, 0.4, 0.7, 0
clothes,keep_dry, 22, 0.4, 0.95, 1
clothes,keep_dry, 21, 0.5, 0.5, 0
metal,normal,20, 0.3, 1, 1
metal,normal, 21, 0.3, 1, 1
metal,normal, -10, 0.3, 0.98, 1
metal,normal,28, 0.7, 0.9, 1
metal,normal,30, 0.7, 0.9, 1
wood,normal,25, 0.2, 0.98, 1
wood,normal,28, 0.7, 0.65, 0
books,keep_dry, 26, 0.7, 0.4, 0
books,keep_dry, 24, 0.5, 0.7, 0
books,keep_dry, 25, 0.3, 0.99, 1
books,keep_dry, 22, 0.4, 0.78, 0
books,keep_dry, 25, 0.35, 0.85, 1
books,keep_dry, 20, 0.2, 1, 1
drugs,keep_dry, 25, 0.5, 0.8, 0
drugs,keep_dry, 20, 0.3, 0.99, 1
drugs,keep_dry, 21, 0.3, 0.99, 1
drugs,keep_dry, 22, 0.7, 0.75, 0
drugs,keep_dry, 28, 0.3, 0.81, 0
drugs,keep_dry, 23, 0.3, 0.88, 1
drugs,keep_dry, 21, 0.37, 0.90, 1
glass,fragile, 20, 0.7, 0.995, 1
glass,fragile, -15, 0.3, 0.7, 0
vials,fragile, -15, 0.3, 0.75, 0
vials,fragile, 20, 0.5, 0.92, 1
plate,fragile, 25, 0.3, 1, 1
phials,fragile, 25, 0.5, 0.999, 1
cardboard,keep_dry, 22, 0.3, 0.999, 1
cardboard,keep_dry, 23, 0.7, 0.5, 0
cardboard,keep_dry, 28, 0.7, 0.4, 0
cardboard,keep_dry, 28, 0.5, 0.55, 0
cardboard,keep_dry, 25, 0.7, 0.45, 0
cardboard,keep_dry, 27, 0.3, 0.9, 1
cardboard,keep_dry, 29, 0.3, 0.88, 1
cardboard,keep_dry, 24, 0.4, 0.8, 1
frozen food,freezed, 20, 0.4, 0.001, 0
seeds,freezed, 25, 0.5, 0.2, 0
seeds,freezed, 20, 0.8, 0.01, 0
seeds,freezed, -10, 0.3, 0.998, 1
seeds,freezed, 20, 0.3, 0.6, 0
seeds,freezed, -8, 0.3, 0.99, 1
seeds,freezed, -10, 0.5, 0.995, 1
seeds,freezed, -15, 0.3, 1, 1
seeds,freezed, -15, 0.4, 1, 1
frozen food,freezed,-15, 0.3, 1, 1
frozen food,freezed,-15, 0.3, 1, 1
frozen food,freezed,-15, 0.3, 1, 1
frozen food,freezed,-15, 0.3, 1, 1
frozen food,freezed,-14, 0.3, 1, 1
frozen food,freezed,-12, 0.3, 0.999, 1
frozen food,freezed,-10, 0.3, 0.99, 1
frozen food,freezed,20, 0.5, 0.01, 0
frozen food,freezed,20, 0.3, 0.01, 0
frozen food,freezed,22, 0.5, 0.01, 0
frozen food,freezed,22, 0.2, 0.01, 0
frozen food,freezed,22, 0.4, 0.01, 0
frozen food,freezed,22, 0.7, 0.01, 0
frozen food,freezed,20, 0.5, 0.01, 0
frozen food,freezed,24, 0.3, 0.01, 0
frozen food,freezed,20, 0.5, 0.01, 0
frozen food,freezed,28, 0.3, 0.01, 0
frozen food,freezed,20, 0.5, 0.01, 0
frozen food,freezed,20, 0.3, 0.01, 0
frozen food,freezed,21, 0.5, 0.01, 0
frozen food,freezed,20, 0.3, 0.01, 0
frozen food,freezed,20, 0.5, 0.01, 0
frozen food,freezed,23, 0.3, 0.01, 0
frozen food,freezed,20, 0.5, 0.01, 0
frozen food,freezed,22, 0.3, 0.01, 0
frozen food,freezed,25, 0.5, 0.01, 0
frozen food,freezed,20, 0.3, 0.01, 0
frozen food,freezed,20, 0.7, 0.01, 0
frozen food,freezed,20, 0.2, 0.01, 0
seeds,freezed, 25, 0.5, 0.2, 0
seeds,freezed, 20, 0.8, 0.01, 0
seeds,freezed, -10, 0.3, 0.998, 1
seeds,freezed, 20, 0.3, 0.6, 0
seeds,freezed, -8, 0.3, 0.99, 1
seeds,freezed, -10, 0.5, 0.995, 1
seeds,freezed, -15, 0.3, 1, 1
seeds,freezed, -15, 0.4, 1, 1
frozen food,freezed,22, 0.3, 0.00001, 0
porcelain,fragile,20, 0.3, 0.99, 1
porcelain,fragile,22, 0.5, 0.999, 1
cosmetics,normal,20, 0.3, 1, 1
cosmetics,normal,28, 0.7, 0.90, 1
cosmetics,normal,22, 0.5, 0.99, 1
plastic,normal,25, 0.7, 1, 1
plastic,normal,24, 0.7, 1, 1
plastic,normal,30, 0.4, 0.99, 1
plastic,normal, 28, 0.6, 1, 1
wood,normal,28,0.5,0.96,1
wood,normal,27,0.4,1,1
plastic,normal,30, 0.7, 0.985, 1
electronic,keep_dry, 25, 0.6, 0.6, 0
metal,normal, 22, 0.7, 0.99, 1
metal,normal, 30, 0.5, 0.999, 1
metal,normal, 25, 0.3, 1, 1
metal,normal, 24, 0.4, 1, 1
seeds,freezed, 25, 0.5, 0.2, 0
seeds,freezed, 20, 0.8, 0.01, 0
seeds,freezed, -10, 0.3, 0.998, 1
seeds,freezed, 20, 0.3, 0.6, 0
seeds,freezed, -8, 0.3, 0.99, 1
seeds,freezed, -10, 0.5, 0.995, 1
seeds,freezed, -15, 0.3, 1, 1
seeds,freezed, -15, 0.4, 1, 1
lacquer,flammable, 30, 0.3, 0.4, 0
lacquer,flammable, 28, 0.5, 0.6, 0
lacquer,flammable, 28, 0.4, 0.6, 0
lacquer,flammable, 29, 0.3, 0.45, 0
lacquer,flammable, 25, 0.6, 0.65, 0
lacquer,flammable, 24, 0.7, 0.89, 0
lacquer,flammable, 22, 0.6, 0.95, 1
lacquer,flammable, 20, 0.4, 1, 1
lacquer,flammable, 20, 0.7, 1, 1
lacquer,flammable, 21, 0.6, 0.99, 1
lacquer,flammable, 23, 0.4, 0.9, 0
lacquer,flammable, 26, 0.2, 0.6, 0
lacquer,flammable, 30, 0.2, 0.35, 0
lacquer,flammable, 30, 0.7, 0.35, 0
gasoline,flammable, 30, 0.4, 0.1, 0
gasoline,flammable, 30, 0.7, 0.1, 0
gasoline,flammable, 26, 0.5, 0.4, 0
gasoline,flammable, 25, 0.7, 0.5, 0
gasoline,flammable, 25, 0.2, 0.5, 0
gasoline,flammable, 21, 0.7, 0.99, 1
gasoline,flammable, 22, 0.5, 0.92, 1
gasoline,flammable, 22, 0.7, 0.93, 1
gasoline,flammable, 20, 0.5, 1, 1
gasoline,flammable, 20, 0.7, 1, 1
gasoline,flammable, 20, 0.4, 1, 1
plate,fragile, 20, 0.7, 1, 1
plate,fragie, 24, 0.3, 1, 1
plate,fragile, -15, 0.3, 0.6, 0
plate,fragile, -10, 0.3, 0.65, 0
vials,fragile, -15, 0.3, 0.6, 0
vials,fragile, 20, 0.7, 1, 1
vials,fragile, 20, 0.2, 1, 1
books,keep_dry, 20, 0.3, 1, 1
books,keep_dry, 20, 0.7, 0.79, 0
books,keep_dry, 25, 0.7, 0.75, 0
books,keep_dry, 25, 0.2, 0.99, 1
books,keep_dry, 28, 0.2, 0.9, 1
books,keep_dry, 28, 0.7, 0.2, 0
books,keep_dry, 28, 0.6, 0.25, 0
books,keep_dry, 26, 0.6, 0.28, 0
books,keep_dry,26, 0.2, 0.95, 1
cardboard,keep_dry, 28, 0.7, 0.15, 0
cardboard,keep_dry, 28, 0.2, 0.9, 1
cardboard,keep_dry, 25, 0.2, 0.95, 1
cardboard,keep_dry, 25, 0.6, 0.3, 0
cardboard,keep_dry, 25, 0.7, 0.2, 0
electronics,keep_dry, 21, 0.4, 0.999, 1
electronic,keep_dry, 21, 0.7, 0.68, 0
electronic,keep_dry, 29, 0.2, 0.998, 1
electronic,keep_dry, 29, 0.6, 0.45, 0
electronic,keep_dry, 29, 0.7, 0.35, 0
electronic,keep_dry, 25, 0.4, 0.82, 1
electronic,keep_dry, 25, 0.5, 0.70, 0
electronic,keep_dry, 25, 0.7, 0.5, 0
electronic,keep_dry, 28, 0.2, 0.995, 1
electronic,keep_dry, 28, 0.4, 0.81, 1
electronic,keep_dry, 28, 0.6, 0.5, 0
electronic,keep_dry, 28, 0.7, 0.4, 0
electronic,keep_dry, 28, 0.3, 0.93, 1
clothes,keep_dry, 28, 0.3, 0.95, 1
clothes,keep_dry, 28, 0.2, 0.999, 1
clothes,keep_dry, 28, 0.7, 0.3, 0
wood,normal, 27, 0.2, 1, 1
wood,normal, 27, 0.7, 0.95, 1
wood,normal, 25, 0.7, 0.96, 1
wood,normal, 20, 0.3, 1, 1
wood,normal, 23, 0.2, 1, 1
wood,normal, 23, 0.7, 0.98, 1
electronic,keep_dry, 29, 0.6, 0.45, 0
electronic,keep_dry, 29, 0.7, 0.35, 0
electronic,keep_dry, 24, 0.4, 0.82, 1
electronic,keep_dry, 20, 0.5, 0.72, 0
electronic,keep_dry, 25, 0.7, 0.5, 0
electronic,keep_dry, 28, 0.2, 0.995, 1
electronic,keep_dry, 28, 0.4, 0.81, 1
electronic,keep_dry, 28, 0.6, 0.5, 0
electronic,keep_dry, 30, 0.7, 0.35, 0
electronic,keep_dry, 28, 0.3, 0.93, 1
clothes,keep_dry, 28, 0.3, 0.95, 1
clothes,keep_dry, 28, 0.2, 0.999, 1
clothes,keep_dry, 28, 0.7, 0.3, 0
wood,normal, 27, 0.2, 1, 1
wood,normal, 27, 0.7, 0.95, 1
wood,normal, 25, 0.7, 0.96, 1
wood,normal, 20, 0.3, 1, 1
wood,normal, 23, 0.2, 1, 1
wood,normal, 23, 0.7, 0.98, 1
wood,normal,30,0.7,0.95,1
food,normal,28,0.5,0.7,0
food,normal,26,0.3,0.9,1
food,normal,22,0.3,0.99,1
1 product category temperature humidity chance_of_survive place_here
2 food normal 20 0.5 0.85 1
3 food normal 25 0.7 0.6 0
4 electronic keep_dry 20 0.3 0.95 1
5 wood normal 24 0.5 0.9 1
6 electronic keep_dry 25 0.7 0.4 0
7 ammo flammable 28 0.4 0.2 0
8 ammo flammable 27 0.4 0.25 0
9 ammo flammable 27 0.6 0.22 0
10 ammo flammable 22 0.5 0.8 1
11 ammo flammable 23 0.5 0.7 0
12 clothes keep_dry 25 0.6 0.4 0
13 clothes keep_dry 25 0.7 0.25 0
14 clothes keep_dry 25 0.7 0.25 0
15 electronic keep_dry 22 0.5 0.7 0
16 electronic keep_dry 22 0.7 0.45 0
17 electronic keep_dry 22 0.3 0.85 1
18 electronic keep_dry 22 0.2 0.99 1
19 clothes keep_dry 25 0.7 0.25 0
20 clothes keep_dry 25 0.7 0.25 0
21 clothes keep_dry 24 0.2 0.95 0
22 frozen_food freezed 24 0.5 0.001 0
23 frozen_food freezed 22 0.5 0.001 0
24 frozen_food freezed 20 0.5 0.004 0
25 frozen_food freezed -15 0.3 0.999 1
26 frozen_food freezed -15 0.2 0.999 1
27 frozen_food freezed -10 0.3 0.995 1
28 frozen_food freezed -15 0.2 1.00 1
29 frozen_food freezed 24 0.5 0.001 0
30 frozen_food freezed 22 0.5 0.001 0
31 frozen_food freezed 20 0.5 0.004 0
32 frozen_food freezed -15 0.3 0.999 1
33 frozen_food freezed -15 0.2 0.999 1
34 frozen_food freezed -10 0.3 0.995 1
35 frozen_food freezed -15 0.2 1.00 1
36 frozen_food freezed 24 0.5 0.001 0
37 frozen_food freezed 22 0.5 0.001 0
38 frozen_food freezed 20 0.5 0.004 0
39 frozen_food freezed -15 0.3 0.999 1
40 frozen_food freezed -15 0.2 0.999 1
41 frozen_food freezed -10 0.3 0.995 1
42 frozen_food freezed -15 0.2 1.00 1
43 clothes keep_dry 28 0.4 0.7 0
44 clothes keep_dry 22 0.4 0.95 1
45 clothes keep_dry 21 0.5 0.5 0
46 metal normal 20 0.3 1 1
47 metal normal 21 0.3 1 1
48 metal normal -10 0.3 0.98 1
49 metal normal 28 0.7 0.9 1
50 metal normal 30 0.7 0.9 1
51 wood normal 25 0.2 0.98 1
52 wood normal 28 0.7 0.65 0
53 books keep_dry 26 0.7 0.4 0
54 books keep_dry 24 0.5 0.7 0
55 books keep_dry 25 0.3 0.99 1
56 books keep_dry 22 0.4 0.78 0
57 books keep_dry 25 0.35 0.85 1
58 books keep_dry 20 0.2 1 1
59 drugs keep_dry 25 0.5 0.8 0
60 drugs keep_dry 20 0.3 0.99 1
61 drugs keep_dry 21 0.3 0.99 1
62 drugs keep_dry 22 0.7 0.75 0
63 drugs keep_dry 28 0.3 0.81 0
64 drugs keep_dry 23 0.3 0.88 1
65 drugs keep_dry 21 0.37 0.90 1
66 glass fragile 20 0.7 0.995 1
67 glass fragile -15 0.3 0.7 0
68 vials fragile -15 0.3 0.75 0
69 vials fragile 20 0.5 0.92 1
70 plate fragile 25 0.3 1 1
71 phials fragile 25 0.5 0.999 1
72 cardboard keep_dry 22 0.3 0.999 1
73 cardboard keep_dry 23 0.7 0.5 0
74 cardboard keep_dry 28 0.7 0.4 0
75 cardboard keep_dry 28 0.5 0.55 0
76 cardboard keep_dry 25 0.7 0.45 0
77 cardboard keep_dry 27 0.3 0.9 1
78 cardboard keep_dry 29 0.3 0.88 1
79 cardboard keep_dry 24 0.4 0.8 1
80 frozen food freezed 20 0.4 0.001 0
81 seeds freezed 25 0.5 0.2 0
82 seeds freezed 20 0.8 0.01 0
83 seeds freezed -10 0.3 0.998 1
84 seeds freezed 20 0.3 0.6 0
85 seeds freezed -8 0.3 0.99 1
86 seeds freezed -10 0.5 0.995 1
87 seeds freezed -15 0.3 1 1
88 seeds freezed -15 0.4 1 1
89 frozen food freezed -15 0.3 1 1
90 frozen food freezed -15 0.3 1 1
91 frozen food freezed -15 0.3 1 1
92 frozen food freezed -15 0.3 1 1
93 frozen food freezed -14 0.3 1 1
94 frozen food freezed -12 0.3 0.999 1
95 frozen food freezed -10 0.3 0.99 1
96 frozen food freezed 20 0.5 0.01 0
97 frozen food freezed 20 0.3 0.01 0
98 frozen food freezed 22 0.5 0.01 0
99 frozen food freezed 22 0.2 0.01 0
100 frozen food freezed 22 0.4 0.01 0
101 frozen food freezed 22 0.7 0.01 0
102 frozen food freezed 20 0.5 0.01 0
103 frozen food freezed 24 0.3 0.01 0
104 frozen food freezed 20 0.5 0.01 0
105 frozen food freezed 28 0.3 0.01 0
106 frozen food freezed 20 0.5 0.01 0
107 frozen food freezed 20 0.3 0.01 0
108 frozen food freezed 21 0.5 0.01 0
109 frozen food freezed 20 0.3 0.01 0
110 frozen food freezed 20 0.5 0.01 0
111 frozen food freezed 23 0.3 0.01 0
112 frozen food freezed 20 0.5 0.01 0
113 frozen food freezed 22 0.3 0.01 0
114 frozen food freezed 25 0.5 0.01 0
115 frozen food freezed 20 0.3 0.01 0
116 frozen food freezed 20 0.7 0.01 0
117 frozen food freezed 20 0.2 0.01 0
118 seeds freezed 25 0.5 0.2 0
119 seeds freezed 20 0.8 0.01 0
120 seeds freezed -10 0.3 0.998 1
121 seeds freezed 20 0.3 0.6 0
122 seeds freezed -8 0.3 0.99 1
123 seeds freezed -10 0.5 0.995 1
124 seeds freezed -15 0.3 1 1
125 seeds freezed -15 0.4 1 1
126 frozen food freezed 22 0.3 0.00001 0
127 porcelain fragile 20 0.3 0.99 1
128 porcelain fragile 22 0.5 0.999 1
129 cosmetics normal 20 0.3 1 1
130 cosmetics normal 28 0.7 0.90 1
131 cosmetics normal 22 0.5 0.99 1
132 plastic normal 25 0.7 1 1
133 plastic normal 24 0.7 1 1
134 plastic normal 30 0.4 0.99 1
135 plastic normal 28 0.6 1 1
136 wood normal 28 0.5 0.96 1
137 wood normal 27 0.4 1 1
138 plastic normal 30 0.7 0.985 1
139 electronic keep_dry 25 0.6 0.6 0
140 metal normal 22 0.7 0.99 1
141 metal normal 30 0.5 0.999 1
142 metal normal 25 0.3 1 1
143 metal normal 24 0.4 1 1
144 seeds freezed 25 0.5 0.2 0
145 seeds freezed 20 0.8 0.01 0
146 seeds freezed -10 0.3 0.998 1
147 seeds freezed 20 0.3 0.6 0
148 seeds freezed -8 0.3 0.99 1
149 seeds freezed -10 0.5 0.995 1
150 seeds freezed -15 0.3 1 1
151 seeds freezed -15 0.4 1 1
152 lacquer flammable 30 0.3 0.4 0
153 lacquer flammable 28 0.5 0.6 0
154 lacquer flammable 28 0.4 0.6 0
155 lacquer flammable 29 0.3 0.45 0
156 lacquer flammable 25 0.6 0.65 0
157 lacquer flammable 24 0.7 0.89 0
158 lacquer flammable 22 0.6 0.95 1
159 lacquer flammable 20 0.4 1 1
160 lacquer flammable 20 0.7 1 1
161 lacquer flammable 21 0.6 0.99 1
162 lacquer flammable 23 0.4 0.9 0
163 lacquer flammable 26 0.2 0.6 0
164 lacquer flammable 30 0.2 0.35 0
165 lacquer flammable 30 0.7 0.35 0
166 gasoline flammable 30 0.4 0.1 0
167 gasoline flammable 30 0.7 0.1 0
168 gasoline flammable 26 0.5 0.4 0
169 gasoline flammable 25 0.7 0.5 0
170 gasoline flammable 25 0.2 0.5 0
171 gasoline flammable 21 0.7 0.99 1
172 gasoline flammable 22 0.5 0.92 1
173 gasoline flammable 22 0.7 0.93 1
174 gasoline flammable 20 0.5 1 1
175 gasoline flammable 20 0.7 1 1
176 gasoline flammable 20 0.4 1 1
177 plate fragile 20 0.7 1 1
178 plate fragie 24 0.3 1 1
179 plate fragile -15 0.3 0.6 0
180 plate fragile -10 0.3 0.65 0
181 vials fragile -15 0.3 0.6 0
182 vials fragile 20 0.7 1 1
183 vials fragile 20 0.2 1 1
184 books keep_dry 20 0.3 1 1
185 books keep_dry 20 0.7 0.79 0
186 books keep_dry 25 0.7 0.75 0
187 books keep_dry 25 0.2 0.99 1
188 books keep_dry 28 0.2 0.9 1
189 books keep_dry 28 0.7 0.2 0
190 books keep_dry 28 0.6 0.25 0
191 books keep_dry 26 0.6 0.28 0
192 books keep_dry 26 0.2 0.95 1
193 cardboard keep_dry 28 0.7 0.15 0
194 cardboard keep_dry 28 0.2 0.9 1
195 cardboard keep_dry 25 0.2 0.95 1
196 cardboard keep_dry 25 0.6 0.3 0
197 cardboard keep_dry 25 0.7 0.2 0
198 electronics keep_dry 21 0.4 0.999 1
199 electronic keep_dry 21 0.7 0.68 0
200 electronic keep_dry 29 0.2 0.998 1
201 electronic keep_dry 29 0.6 0.45 0
202 electronic keep_dry 29 0.7 0.35 0
203 electronic keep_dry 25 0.4 0.82 1
204 electronic keep_dry 25 0.5 0.70 0
205 electronic keep_dry 25 0.7 0.5 0
206 electronic keep_dry 28 0.2 0.995 1
207 electronic keep_dry 28 0.4 0.81 1
208 electronic keep_dry 28 0.6 0.5 0
209 electronic keep_dry 28 0.7 0.4 0
210 electronic keep_dry 28 0.3 0.93 1
211 clothes keep_dry 28 0.3 0.95 1
212 clothes keep_dry 28 0.2 0.999 1
213 clothes keep_dry 28 0.7 0.3 0
214 wood normal 27 0.2 1 1
215 wood normal 27 0.7 0.95 1
216 wood normal 25 0.7 0.96 1
217 wood normal 20 0.3 1 1
218 wood normal 23 0.2 1 1
219 wood normal 23 0.7 0.98 1
220 electronic keep_dry 29 0.6 0.45 0
221 electronic keep_dry 29 0.7 0.35 0
222 electronic keep_dry 24 0.4 0.82 1
223 electronic keep_dry 20 0.5 0.72 0
224 electronic keep_dry 25 0.7 0.5 0
225 electronic keep_dry 28 0.2 0.995 1
226 electronic keep_dry 28 0.4 0.81 1
227 electronic keep_dry 28 0.6 0.5 0
228 electronic keep_dry 30 0.7 0.35 0
229 electronic keep_dry 28 0.3 0.93 1
230 clothes keep_dry 28 0.3 0.95 1
231 clothes keep_dry 28 0.2 0.999 1
232 clothes keep_dry 28 0.7 0.3 0
233 wood normal 27 0.2 1 1
234 wood normal 27 0.7 0.95 1
235 wood normal 25 0.7 0.96 1
236 wood normal 20 0.3 1 1
237 wood normal 23 0.2 1 1
238 wood normal 23 0.7 0.98 1
239 wood normal 30 0.7 0.95 1
240 food normal 28 0.5 0.7 0
241 food normal 26 0.3 0.9 1
242 food normal 22 0.3 0.99 1

View File

@ -2,7 +2,6 @@ PRODUCT_TYPES = {
"freezed": [
"frozen food",
"seeds",
"frozen liquids"
],
"fragile": [
"glass",
@ -22,7 +21,8 @@ PRODUCT_TYPES = {
"cosmetics",
"wood",
"metal",
"plastic"
"plastic",
"food"
],
"flammable": [
"gasoline",