質問編集履歴

2

情報の追加

2017/11/07 13:05

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -136,7 +136,21 @@
136
136
 
137
137
  ```ここに言語を入力
138
138
 
139
+ Traceback (most recent call last):
140
+
141
+ File "sound.py", line 70, in <module>
142
+
139
- clf = svm.SVC(kernel='linear', C=1).fit(train_data, train_label)
143
+ clf = svm.SVC(kernel='linear', C=1).fit(train_data, train_label)
144
+
145
+ File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/svm/base.py", line 152, in fit
146
+
147
+ y = self._validate_targets(y)
148
+
149
+ File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sklearn/svm/base.py", line 526, in _validate_targets
150
+
151
+ % len(cls))
152
+
153
+ ValueError: The number of classes has to be greater than one; got 1
140
154
 
141
155
  ```
142
156
 

1

情報の追加

2017/11/07 13:05

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
File without changes