Skip to content

Commit

Permalink
15 / 20 : rename curve_fitting_plot() -> cost_with_plot()
Browse files Browse the repository at this point in the history
  • Loading branch information
beachdweller committed Apr 8, 2024
1 parent 2223882 commit 624406d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 15_optimization/020_Curve_Fitting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
"metadata": {},
"outputs": [],
"source": [
"def curve_fitting_plot(coefs:np.ndarray, x:np.ndarray, y:np.ndarray) -> float:\n",
"def cost_with_plot(coefs:np.ndarray, x:np.ndarray, y:np.ndarray) -> float:\n",
" result = calc_cost(coefs, x, y)\n",
"\n",
" if not os.getenv('CI', False):\n",
Expand All @@ -324,7 +324,7 @@
},
"outputs": [],
"source": [
"result_minimize = so.minimize(curve_fitting_plot, [-1, 2, 30], args=(x_data, y_measure), method=\"Nelder-Mead\")\n",
"result_minimize = so.minimize(cost_with_plot, [-1, 2, 30], args=(x_data, y_measure), method=\"Nelder-Mead\")\n",
"\n"
]
},
Expand Down

0 comments on commit 624406d

Please sign in to comment.