-
Notifications
You must be signed in to change notification settings - Fork 34
/
西瓜数据集汇总.py
127 lines (121 loc) · 5.14 KB
/
西瓜数据集汇总.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
西瓜数据集2.0
dataSet = [
# 1
['青绿', '蜷缩', '浊响', '清晰', '凹陷', '硬滑', '好瓜'],
# 2
['乌黑', '蜷缩', '沉闷', '清晰', '凹陷', '硬滑', '好瓜'],
# 3
['乌黑', '蜷缩', '浊响', '清晰', '凹陷', '硬滑', '好瓜'],
# 4
['青绿', '蜷缩', '沉闷', '清晰', '凹陷', '硬滑', '好瓜'],
# 5
['浅白', '蜷缩', '浊响', '清晰', '凹陷', '硬滑', '好瓜'],
#--------------------------------------------
# 6
['青绿', '稍蜷', '浊响', '清晰', '稍凹', '软粘', '好瓜'],
# 7
['乌黑', '稍蜷', '浊响', '稍糊', '稍凹', '软粘', '好瓜'],
# 8
['乌黑', '稍蜷', '浊响', '清晰', '稍凹', '硬滑', '好瓜'],
# 9
['乌黑', '稍蜷', '沉闷', '稍糊', '稍凹', '硬滑', '坏瓜'],
# 10
['青绿', '硬挺', '清脆', '清晰', '平坦', '软粘', '坏瓜'],
#--------------------------------------------
# 11
['浅白', '硬挺', '清脆', '模糊', '平坦', '硬滑', '坏瓜'],
# 12
['浅白', '蜷缩', '浊响', '模糊', '平坦', '软粘', '坏瓜'],
# 13
['青绿', '稍蜷', '浊响', '稍糊', '凹陷', '硬滑', '坏瓜'],
# 14
['浅白', '稍蜷', '沉闷', '稍糊', '凹陷', '硬滑', '坏瓜'],
# 15
['乌黑', '稍蜷', '浊响', '清晰', '稍凹', '软粘', '坏瓜'],
# 16
['浅白', '蜷缩', '浊响', '模糊', '平坦', '硬滑', '坏瓜'],
# 17
['青绿', '蜷缩', '沉闷', '稍糊', '稍凹', '硬滑', '坏瓜']
]
##############################################
# 西瓜数据集2.0α
dataSet = [
# 1
['-', '蜷缩', '浊响', '清晰', '凹陷', '硬滑', '好瓜'],
# 2
['乌黑', '蜷缩', '沉闷', '清晰', '凹陷', '-', '好瓜'],
# 3
['乌黑', '蜷缩', '-', '清晰', '凹陷', '硬滑', '好瓜'],
# 4
['青绿', '蜷缩', '沉闷', '清晰', '凹陷', '硬滑', '好瓜'],
# 5
['-', '蜷缩', '浊响', '清晰', '凹陷', '硬滑', '好瓜'],
#--------------------------------------------
# 6
['青绿', '稍蜷', '浊响', '清晰', '-', '软粘', '好瓜'],
# 7
['乌黑', '稍蜷', '浊响', '稍糊', '稍凹', '软粘', '好瓜'],
# 8
['乌黑', '稍蜷', '浊响', '-', '稍凹', '硬滑', '好瓜'],
# 9
['乌黑', '-', '沉闷', '稍糊', '稍凹', '硬滑', '坏瓜'],
# 10
['青绿', '硬挺', '清脆', '-', '平坦', '软粘', '坏瓜'],
#--------------------------------------------
# 11
['浅白', '硬挺', '清脆', '模糊', '平坦', '-', '坏瓜'],
# 12
['浅白', '蜷缩', '-', '模糊', '平坦', '软粘', '坏瓜'],
# 13
['-', '稍蜷', '浊响', '稍糊', '凹陷', '硬滑', '坏瓜'],
# 14
['浅白', '稍蜷', '沉闷', '稍糊', '凹陷', '硬滑', '坏瓜'],
# 15
['乌黑', '稍蜷', '浊响', '清晰', '-', '软粘', '坏瓜'],
# 16
['浅白', '蜷缩', '浊响', '模糊', '平坦', '硬滑', '坏瓜'],
# 17
['青绿', '-', '沉闷', '稍糊', '稍凹', '硬滑', '坏瓜']
]
##############################################
西瓜数据集3.0(按照序号从小到达排,没有打乱成训练集和验证集)
dataSet = [
['青绿','蜷缩','浊响','清晰','凹陷','硬滑',0.697,0.460,'是'],
['乌黑','蜷缩','沉闷','清晰','凹陷','硬滑',0.774,0.376,'是'],
['乌黑','蜷缩','浊响','清晰','凹陷','硬滑',0.634,0.264,'是'],
['青绿','蜷缩','沉闷','清晰','凹陷','硬滑',0.608,0.318,'是'],
['浅白','蜷缩','浊响','清晰','凹陷','硬滑',0.556,0.215,'是'],
['青绿','稍蜷','浊响','清晰','稍凹','软粘',0.403,0.237,'是'],
['乌黑','稍蜷','浊响','稍糊','稍凹','软粘',0.481,0.149,'是'],
['乌黑','稍蜷','浊响','清晰','稍凹','硬滑',0.437,0.211,'是'],
['乌黑','稍蜷','沉闷','稍糊','稍凹','硬滑',0.666,0.091,'否'],
['青绿','硬挺','清脆','清晰','平坦','软粘',0.243,0.267,'否'],
['浅白','硬挺','清脆','模糊','平坦','硬滑',0.245,0.057,'否'],
['浅白','蜷缩','浊响','模糊','平坦','软粘',0.343,0.099,'否'],
['青绿','稍蜷','浊响','稍糊','凹陷','硬滑',0.639,0.161,'否'],
['浅白','稍蜷','沉闷','稍糊','凹陷','硬滑',0.657,0.198,'否'],
['乌黑','稍蜷','浊响','清晰','稍凹','软粘',0.360,0.370,'否'],
['浅白','蜷缩','浊响','模糊','平坦','硬滑',0.593,0.042,'否'],
['青绿','蜷缩','沉闷','稍糊','稍凹','硬滑',0.719,0.103,'否']
]
##############################################
西瓜数据集3.0α
dataSet = [
[0.697,0.460,'是'],
[0.774,0.376,'是'],
[0.634,0.264,'是'],
[0.608,0.318,'是'],
[0.556,0.215,'是'],
[0.403,0.237,'是'],
[0.481,0.149,'是'],
[0.437,0.211,'是'],
[0.666,0.091,'否'],
[0.243,0.267,'否'],
[0.245,0.057,'否'],
[0.343,0.099,'否'],
[0.639,0.161,'否'],
[0.657,0.198,'否'],
[0.360,0.370,'否'],
[0.593,0.042,'否'],
[0.719,0.103,'否']
]