回答編集履歴

2

原因について修正

2017/08/09 13:12

投稿

can110
can110

スコア38266

test CHANGED
@@ -10,7 +10,11 @@
10
10
 
11
11
  ただ、以下の最低限のコードは実行できました。
12
12
 
13
+ 元コードでは 「lr = LogisticRegression(C=**10****c, random_state=0)」ですが
14
+
15
+ 以下コードでは「lr = LogisticRegression(C=**10.****c, random_state=0)」となっています。
16
+
13
- `sklearn`バージョンによがあるのかもしれせん
17
+ 原因としてはLouiS0616さん指摘通と思いま
14
18
 
15
19
  ```Python
16
20
 

1

ダウンロード元について追記

2017/08/09 13:12

投稿

can110
can110

スコア38266

test CHANGED
@@ -1,4 +1,6 @@
1
- ほぼ素の`Anaconda`環境(`OS=Win10, python=3.5.x`)にて[Chapter 3 - A Tour of Machine Learning Classifiers Using Scikit-Learn](http://nbviewer.jupyter.org/github/rasbt/python-machine-learning-book/blob/master/code/ch03/ch03.ipynb)から落として実行してみました。
1
+ ほぼ素の`Anaconda`環境(`OS=Win10, python=3.5.x`)にて
2
+
3
+ [提示されたURL](https://github.com/rasbt/python-machine-learning-book/blob/870838e4b95ab84e5777e2516677abe7f4969a50/code/ch03/ch03.ipynb)からはダウンロードできなかったため[Chapter 3 - A Tour of Machine Learning Classifiers Using Scikit-Learn](http://nbviewer.jupyter.org/github/rasbt/python-machine-learning-book/blob/master/code/ch03/ch03.ipynb)から落として実行してみました。
2
4
 
3
5
  `Image(filename='./images/03_03.png', width=500)`あたりはファイルがないので仕方がないとして`import pydotplus`あたりも実行できませんでした。
4
6