File tree 2 files changed +12
-10
lines changed
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 266
266
" w_ : 1d-array\n",
267
267
" Weights after fitting.\n",
268
268
" errors_ : list\n",
269
- " Number of misclassifications in every epoch.\n",
269
+ " Number of misclassifications (updates) in each epoch.\n",
270
270
"\n",
271
271
" \"\"\"\n",
272
272
" def __init__(self, eta=0.01, n_iter=10):\n",
1040
1040
" -----------\n",
1041
1041
" w_ : 1d-array\n",
1042
1042
" Weights after fitting.\n",
1043
- " errors_ : list\n",
1044
- " Number of misclassifications in every epoch.\n",
1043
+ " cost_ : list\n",
1044
+ " Sum-of-squares cost function value in each epoch.\n",
1045
1045
"\n",
1046
1046
" \"\"\"\n",
1047
1047
" def __init__(self, eta=0.01, n_iter=50):\n",
1280
1280
" -----------\n",
1281
1281
" w_ : 1d-array\n",
1282
1282
" Weights after fitting.\n",
1283
- " errors_ : list\n",
1284
- " Number of misclassifications in every epoch.\n",
1283
+ " cost_ : list\n",
1284
+ " Sum-of-squares cost function value averaged over all\n",
1285
+ " training samples in each epoch.\n",
1285
1286
" shuffle : bool (default: True)\n",
1286
1287
" Shuffles training data every epoch if True to prevent cycles.\n",
1287
1288
" random_state : int (default: None)\n",
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Perceptron(object):
30
30
w_ : 1d-array
31
31
Weights after fitting.
32
32
errors_ : list
33
- Number of misclassifications in every epoch.
33
+ Number of misclassifications (updates) in each epoch.
34
34
35
35
"""
36
36
def __init__ (self , eta = 0.01 , n_iter = 10 ):
@@ -188,8 +188,8 @@ class AdalineGD(object):
188
188
-----------
189
189
w_ : 1d-array
190
190
Weights after fitting.
191
- errors_ : list
192
- Number of misclassifications in every epoch.
191
+ cost_ : list
192
+ Sum-of-squares cost function value in each epoch.
193
193
194
194
"""
195
195
def __init__ (self , eta = 0.01 , n_iter = 50 ):
@@ -302,8 +302,9 @@ class AdalineSGD(object):
302
302
-----------
303
303
w_ : 1d-array
304
304
Weights after fitting.
305
- errors_ : list
306
- Number of misclassifications in every epoch.
305
+ cost_ : list
306
+ Sum-of-squares cost function value averaged over all
307
+ training samples in each epoch.
307
308
shuffle : bool (default: True)
308
309
Shuffles training data every epoch if True to prevent cycles.
309
310
random_state : int (default: None)
You can’t perform that action at this time.
0 commit comments