Skip to content

Commit 624406d

Browse files
committed
15 / 20 : rename curve_fitting_plot() -> cost_with_plot()
1 parent 2223882 commit 624406d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

15_optimization/020_Curve_Fitting.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
"metadata": {},
304304
"outputs": [],
305305
"source": [
306-
"def curve_fitting_plot(coefs:np.ndarray, x:np.ndarray, y:np.ndarray) -> float:\n",
306+
"def cost_with_plot(coefs:np.ndarray, x:np.ndarray, y:np.ndarray) -> float:\n",
307307
" result = calc_cost(coefs, x, y)\n",
308308
"\n",
309309
" if not os.getenv('CI', False):\n",
@@ -324,7 +324,7 @@
324324
},
325325
"outputs": [],
326326
"source": [
327-
"result_minimize = so.minimize(curve_fitting_plot, [-1, 2, 30], args=(x_data, y_measure), method=\"Nelder-Mead\")\n",
327+
"result_minimize = so.minimize(cost_with_plot, [-1, 2, 30], args=(x_data, y_measure), method=\"Nelder-Mead\")\n",
328328
"\n"
329329
]
330330
},

0 commit comments

Comments
 (0)