Skip to content

Commit a98c49a

Browse files
Merge pull request #27 from caleb-hamilton/master
Update data_fitting_robustness.ipynb
2 parents cf4ab4a + 8b08e6d commit a98c49a

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

local_optimization/NLDF/data_fitting_robustness.ipynb

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"source": [
1616
"## Technical Setup\n",
1717
"\n",
18-
"### NAG Library\n",
19-
"To run this notebook, you will need to install the NAG Library for Python (Mark 28.5 or newer) and a license key. You can find the software and request a license key from our website here: https://www.nag.com/content/getting-started-nag-library?lang=py&os=linux\n",
18+
"### NAG Library install\n",
19+
"To run this notebook, you will need to install the NAG Library for Python (Mark 28.5 or newer) and a license key. You can find the software and request a license key from our website here: [Getting Started with NAG Library](https://www.nag.com/content/getting-started-nag-library?lang=py&os=linux)\n",
2020
"\n",
21-
"### Correct Rendering of this notebook\n",
21+
"### Correct rendering of this notebook\n",
2222
"\n",
23-
"This notebook makes use of the `latex_envs` Jupyter extension for equations and references. If the LaTeX is not rendering properly in your local installation of Jupyter, it may be because you have not installed this extension. See at https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/latex_envs/README.html for further information."
23+
"This notebook makes use of the `latex_envs` Jupyter extension for equations and references. If the LaTeX is not rendering properly in your local installation of Jupyter, it may be because you have not installed this extension. See at [nbextensions - LATEX for Jupyter notebooks](https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/nbextensions/latex_envs/README.html) for further information."
2424
]
2525
},
2626
{
@@ -538,13 +538,23 @@
538538
"\n",
539539
"## Conclusion\n",
540540
"\n",
541-
"The lesson here is that the same thing that makes a loss function robust – ignoring data that lies far from the current model to some degree – can populate the search space with local minima where the model predicts some of the data well and ignores most of it. In extreme cases like arctan loss, if the starting point fits some of the data very well, the model will likely just be optimized for that portion of the data, even if it is a small portion of the whole dataset. It is therefore important to try a variety of loss functions and stating points when setting up a data-fitting problem, since these will affect both the optimal solution, as well as how easily an optimal solution is found."
541+
"The lesson here is that the same thing that makes a loss function robust – ignoring data that lies far from the current model to some degree – can populate the search space with local minima where the model predicts some of the data well and ignores most of it. In extreme cases like arctan loss, if the starting point fits some of the data very well, the model will likely just be optimized for that portion of the data, even if it is a small portion of the whole dataset. It is therefore important to try a variety of loss functions and stating points when setting up a data-fitting problem, since these will affect both the optimal solution, as well as how easily an optimal solution is found.\n",
542+
"\n",
543+
"[Learn more about the NAG Library](https://www.nag.com/content/nag-library)"
542544
]
545+
},
546+
{
547+
"cell_type": "code",
548+
"execution_count": null,
549+
"id": "d00b4ddf",
550+
"metadata": {},
551+
"outputs": [],
552+
"source": []
543553
}
544554
],
545555
"metadata": {
546556
"kernelspec": {
547-
"display_name": "Python 3.9.13 64-bit",
557+
"display_name": "Python 3 (ipykernel)",
548558
"language": "python",
549559
"name": "python3"
550560
},
@@ -558,7 +568,7 @@
558568
"name": "python",
559569
"nbconvert_exporter": "python",
560570
"pygments_lexer": "ipython3",
561-
"version": "3.9.13"
571+
"version": "3.9.7"
562572
},
563573
"latex_envs": {
564574
"LaTeX_envs_menu_present": true,

0 commit comments

Comments
 (0)