diff --git a/README.md b/README.md index 3ada50f..885fd8c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # HowToFit -[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/start_here.ipynb) +[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/start_here.ipynb) -[Start Here on Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/start_here.ipynb) | +[Start Here on Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/start_here.ipynb) | [Installation Guide](https://pyautofit.readthedocs.io/en/latest/installation/overview.html) | [PyAutoFit readthedocs](https://pyautofit.readthedocs.io/en/latest/index.html) | [Browse Chapter 1 With Images](markdown/README.md) | @@ -78,27 +78,27 @@ output figures inline. Nothing runs and nothing installs — you just read it. T skimming a tutorial before running it, or for reading on a phone. Markdown pages currently exist only for the chapter 1 tutorials listed with a `markdown` link below; every other tutorial is Colab-only. -**[Start Here](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/start_here.ipynb)** — a one-page overview of the whole series. +**[Start Here](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/start_here.ipynb)** — a one-page overview of the whole series. - **[Chapter 1: Introduction](scripts/chapter_1_introduction/README.md)** — Models, likelihoods, non-linear searches, why modeling is hard, and how to interpret the results of a fit, ending with a short guide to building a scientific workflow. - - Start Here: HowToFit Lectures — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/start_here.ipynb) / [markdown](markdown/chapter_1_introduction/start_here.md)) - - Tutorial 1: Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_1_models.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_1_models.md)) - - Tutorial 2: Fitting Data — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_2_fitting_data.md)) - - Tutorial 3: Non Linear Search — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_3_non_linear_search.md)) - - Tutorial 4: Why Modeling Is Hard — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_4_why_modeling_is_hard.md)) - - Tutorial 5: Results and Samples — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_5_results_and_samples.md)) - - Tutorial 6: Gradients — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb)) - - Tutorial 7: The Details — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb)) - - Tutorial 8: Scientific Workflow — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_8_scientific_workflow.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_8_scientific_workflow.md)) - - Tutorial Optional: Bayesian Formalism — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb)) + - Start Here: HowToFit Lectures — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/start_here.ipynb) / [markdown](markdown/chapter_1_introduction/start_here.md)) + - Tutorial 1: Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_1_models.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_1_models.md)) + - Tutorial 2: Fitting Data — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_2_fitting_data.md)) + - Tutorial 3: Non Linear Search — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_3_non_linear_search.md)) + - Tutorial 4: Why Modeling Is Hard — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_4_why_modeling_is_hard.md)) + - Tutorial 5: Results and Samples — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_5_results_and_samples.md)) + - Tutorial 6: Gradients — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb)) + - Tutorial 7: The Details — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb)) + - Tutorial 8: Scientific Workflow — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_8_scientific_workflow.ipynb) / [markdown](markdown/chapter_1_introduction/tutorial_8_scientific_workflow.md)) + - Tutorial Optional: Bayesian Formalism — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb)) - **[Advanced Chapter: Graphical & Hierarchical Models](scripts/chapter_advanced/README.md)** — Fitting many datasets simultaneously with graphical models, hierarchical models, and Expectation Propagation. - - Tutorial 1: Individual Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb)) - - Tutorial 2: Graphical Model — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb)) - - Tutorial 3: Graphical Benefits — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb)) - - Tutorial 4: Hierarchical Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb)) - - Tutorial 5: Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb)) - - Tutorial Optional: Hierarchical Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb)) - - Tutorial Optional: Hierarchical Individual — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/main/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb)) + - Tutorial 1: Individual Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb)) + - Tutorial 2: Graphical Model — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb)) + - Tutorial 3: Graphical Benefits — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb)) + - Tutorial 4: Hierarchical Models — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb)) + - Tutorial 5: Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb)) + - Tutorial Optional: Hierarchical Expectation Propagation — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb)) + - Tutorial Optional: Hierarchical Individual — ([Colab](https://colab.research.google.com/github/PyAutoLabs/HowToFit/blob/2026.9.15.1/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb)) Model-fits run considerably faster on a GPU. In Colab, enable one via *Runtime* → *Change runtime type* → *Hardware accelerator* before running a notebook. diff --git a/notebooks/chapter_1_introduction/start_here.ipynb b/notebooks/chapter_1_introduction/start_here.ipynb index fc2d0fb..a4af1c9 100644 --- a/notebooks/chapter_1_introduction/start_here.ipynb +++ b/notebooks/chapter_1_introduction/start_here.ipynb @@ -101,20 +101,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_1_models.ipynb b/notebooks/chapter_1_introduction/tutorial_1_models.ipynb index 077fb30..7c1a7c8 100644 --- a/notebooks/chapter_1_introduction/tutorial_1_models.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_1_models.ipynb @@ -107,20 +107,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb b/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb index 23ca719..3b2d084 100644 --- a/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_2_fitting_data.ipynb @@ -91,20 +91,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb b/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb index a006f1b..21bad9a 100644 --- a/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_3_non_linear_search.ipynb @@ -188,20 +188,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb b/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb index e9f528a..e9c4d70 100644 --- a/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_4_why_modeling_is_hard.ipynb @@ -80,20 +80,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb b/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb index 4b3f639..e39cbce 100644 --- a/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_5_results_and_samples.ipynb @@ -72,20 +72,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb b/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb index 35ea0bf..463ce79 100644 --- a/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_6_gradients.ipynb @@ -81,20 +81,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb b/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb index 0fbedc2..3a7e3e2 100644 --- a/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_7_the_details.ipynb @@ -85,20 +85,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb b/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb index 01032ab..216a7eb 100644 --- a/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb +++ b/notebooks/chapter_1_introduction/tutorial_optional_bayesian_formalism.ipynb @@ -108,20 +108,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb b/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb index cc7cae5..5bf28d6 100644 --- a/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb +++ b/notebooks/chapter_advanced/tutorial_1_individual_models.ipynb @@ -89,20 +89,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb b/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb index 09f3e0f..e24ae01 100644 --- a/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb +++ b/notebooks/chapter_advanced/tutorial_2_graphical_model.ipynb @@ -73,20 +73,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb b/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb index 644cf83..0df29b3 100644 --- a/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb +++ b/notebooks/chapter_advanced/tutorial_3_graphical_benefits.ipynb @@ -76,20 +76,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb b/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb index 2f80f36..255bc23 100644 --- a/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb +++ b/notebooks/chapter_advanced/tutorial_4_hierachical_models.ipynb @@ -73,20 +73,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb b/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb index f08c52d..3081c09 100644 --- a/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb +++ b/notebooks/chapter_advanced/tutorial_5_expectation_propagation.ipynb @@ -73,20 +73,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb b/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb index 9d6bd27..d030ea3 100644 --- a/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb +++ b/notebooks/chapter_advanced/tutorial_optional_hierarchical_ep.ipynb @@ -58,20 +58,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb b/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb index 227e2ad..9ba8226 100644 --- a/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb +++ b/notebooks/chapter_advanced/tutorial_optional_hierarchical_individual.ipynb @@ -63,20 +63,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/simulators/simulators.ipynb b/notebooks/simulators/simulators.ipynb index 765363c..8fa48f3 100644 --- a/notebooks/simulators/simulators.ipynb +++ b/notebooks/simulators/simulators.ipynb @@ -64,20 +64,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/notebooks/simulators/simulators_sample.ipynb b/notebooks/simulators/simulators_sample.ipynb index b141c6e..7b3b14c 100644 --- a/notebooks/simulators/simulators_sample.ipynb +++ b/notebooks/simulators/simulators_sample.ipynb @@ -51,20 +51,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")" diff --git a/requirements.txt b/requirements.txt index 956f02a..8ebe2d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,4 @@ autofit numba +blackjax>=1.6.2 +nautilus-sampler==1.0.5 diff --git a/start_here.ipynb b/start_here.ipynb index 93cde91..0bd24bb 100644 --- a/start_here.ipynb +++ b/start_here.ipynb @@ -86,20 +86,6 @@ " subprocess.check_call(\n", " [sys.executable, \"-m\", \"pip\", \"install\", \"autonerves\", \"--no-deps\"]\n", " )\n", - "\n", - " # Stopgap (PyAutoNerves#167): dependencies that autofit imports lazily,\n", - " # which the released autonerves bootstrap does not yet install and Colab\n", - " # does not ship. Without these the notebook dies partway through a fit.\n", - " # Remove once autonerves > 2026.9.15.1 is released.\n", - " subprocess.check_call(\n", - " [\n", - " sys.executable, \"-m\", \"pip\", \"install\", \"--no-deps\",\n", - " \"corner==2.2.2\",\n", - " \"optax>=0.2.5\",\n", - " \"xxhash<=3.4.1\",\n", - " \"blackjax>=1.6.2\",\n", - " ]\n", - " )\n", " _setup_colab = importlib.import_module(\"autonerves.setup_colab\")\n", "\n", "_setup_colab.setup(\"howtofit\")"