mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Replace C with self.C, fixes #386
This commit is contained in:
@@ -1109,7 +1109,7 @@
|
||||
" self.Js.append(J)\n",
|
||||
"\n",
|
||||
" w_gradient_vector = w - self.C * np.sum(X_t_sv, axis=0).reshape(-1, 1)\n",
|
||||
" b_derivative = -C * np.sum(t_sv)\n",
|
||||
" b_derivative = -self.C * np.sum(t_sv)\n",
|
||||
" \n",
|
||||
" w = w - self.eta(epoch) * w_gradient_vector\n",
|
||||
" b = b - self.eta(epoch) * b_derivative\n",
|
||||
|
||||
Reference in New Issue
Block a user