From abceb99883f5dfae35d30eec84909c37b7c5a49f Mon Sep 17 00:00:00 2001 From: panxl Date: Thu, 26 Oct 2023 21:51:18 -0500 Subject: [PATCH] Update --- .github/workflows/deploy.yml | 11 +++++------ Lesson1_FNN.ipynb | 9 +-------- _config.yml | 10 +++++++++- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1644583..f175840 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,19 +10,18 @@ on: jobs: build-and-deploy-book: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.10"] + steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Install dependencies - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: '3.10' - name: Install dependencies run: | + python -m pip install --upgrade pip pip install -r requirements.txt # Build the book diff --git a/Lesson1_FNN.ipynb b/Lesson1_FNN.ipynb index 688ae0d..569bc96 100644 --- a/Lesson1_FNN.ipynb +++ b/Lesson1_FNN.ipynb @@ -484,7 +484,7 @@ "\n", "# Hyperparameters\n", "batch_size = 32\n", - "epochs = 500\n", + "epochs = 1000\n", "learning_rate = 1e-2\n", "n_hidden = 20\n", "\n", @@ -685,13 +685,6 @@ "plot_contour_map(X, Y, Z_pred, title='(b) Predicted')\n", "plot_contour_map(X, Y, Z_diff, title='(c) Difference', levels=[-4, -2, 0, 2, 4])" ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/_config.yml b/_config.yml index f2d79c1..e89a420 100644 --- a/_config.yml +++ b/_config.yml @@ -13,7 +13,15 @@ logo : logo.png # A path to the book logo # Force re-execution of notebooks on each build. # See https://jupyterbook.org/content/execute.html execute: - execute_notebooks: force + execute_notebooks: auto + run_in_temp: true + timeout: 300 + exclude_patterns: + - 'Lesson3_BP.ipynb' + - 'Lesson4_DeepPot.ipynb' + - 'Lesson5_BP-FNN_MLP.ipynb' + - 'Lesson6_DeepPot-FNN_MLP.ipynb' + - 'Lesson7_BP-GPR_MLP.ipynb' only_build_toc_files: true