Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
panxl committed Oct 27, 2023
1 parent 2b01ab3 commit abceb99
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 1 addition & 8 deletions Lesson1_FNN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
10 changes: 9 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit abceb99

Please sign in to comment.