teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

2018/09/28 15:43

投稿

tiitoi
tiitoi

スコア21960

answer CHANGED
@@ -10,12 +10,22 @@
10
10
  print(clf.max_iter)
11
11
  ```
12
12
 
13
- partial_fit() の直前で
13
+ ## 追記
14
14
 
15
+ hayataka2049 さんがおっしゃる通りバージョンの問題っぽいですね
16
+ 最近のバージョンで追加されたみたいです。
17
+
15
18
  ```
16
- print(type(clf))
17
- print(X.shape)
18
- print(y.shape)
19
+ max_iter : int, optional
20
+ The maximum number of passes over the training data (aka epochs). It only impacts the behavior in the fit method, and not the partial_fit. Defaults to 5. Defaults to 1000 from 0.21, or if tol is not None.
21
+
22
+ New in version 0.19.
19
23
  ```
20
24
 
21
- としたら、どうなりますか?
25
+ バージョンは以下で確認できます
26
+
27
+ ```
28
+ import sklearn
29
+
30
+ print(sklearn.__version__) # 0.19.2
31
+ ```