質問編集履歴

2

2020/01/09 06:11

投稿

yu__
yu__

スコア108

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  しかしながら、よく見てみると、
8
8
 
9
- [scikit-learnによる多クラスSVM](https://qiita.com/sotetsuk/items/3a5718bb1f945a383ceb)に使用されている```estimator = SVC(C=C, kernel=kernel, gamma=gamma)```はdefalutでovrが使用されていると感じます(理由:[sklearn.svm.SVC](https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html)```decision_function_shape='ovr'```)。
9
+ [scikit-learnによる多クラスSVM](https://qiita.com/sotetsuk/items/3a5718bb1f945a383ceb)に使用されている```estimator = SVC(C=C, kernel=kernel, gamma=gamma)```はdefalutでovrが使用されていると感じます(理由:[sklearn.svm.SVC](https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html)のデフォルトが```decision_function_shape='ovr'```)。
10
10
 
11
11
 
12
12
 

1

新しい情報を付け足しました。

2020/01/09 06:11

投稿

yu__
yu__

スコア108

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,5 @@
1
+ ### sklearn.multiclass.OneVsRestClassifierの挙動について
2
+
1
3
  [scikit-learnによる多クラスSVM](https://qiita.com/sotetsuk/items/3a5718bb1f945a383ceb)を参考にSVCにおいて、One-versus-the-restとOne-versus-oneのどちらの戦略が良いかを実データをもとに知りました。
2
4
 
3
5
  One-versus-the-restはOne-versus-oneと比較して計算時間が短い点において有効な戦略であるのかなぁ程度の理解だったので、精度に差がここまで出てくることが意外でした。
@@ -31,3 +33,11 @@
31
33
 
32
34
 
33
35
  詳しい方がいれば教えていただけると大変助かります。よろしくお願いいたします。
36
+
37
+
38
+
39
+ #追記
40
+
41
+ [What is the difference between OneVsRestClassifier with SVC and SVC with decision_function_shape='ovr'?](https://stackoverflow.com/questions/39604468/what-is-the-difference-between-onevsrestclassifier-with-svc-and-svc-with-decisio)
42
+
43
+ 上記のurlに軽く議論されています。