Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
panxl committed Oct 26, 2023
1 parent 4fd943c commit c8bc440
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]
python-version: [3.10]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Install dependencies
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
15 changes: 11 additions & 4 deletions Lesson1_FNN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
"torch.manual_seed(314)\n",
"\n",
"# Hyperparameters\n",
"batch_size = 8\n",
"batch_size = 32\n",
"epochs = 1000\n",
"learning_rate = 1e-2\n",
"n_hidden = 20\n",
Expand Down Expand Up @@ -426,7 +426,7 @@
},
{
"cell_type": "code",
"execution_count": 74,
"execution_count": null,
"metadata": {
"id": "Ks_KCDRQ3tDk"
},
Expand Down Expand Up @@ -484,7 +484,7 @@
"\n",
"# Hyperparameters\n",
"batch_size = 32\n",
"epochs = 1000\n",
"epochs = 500\n",
"learning_rate = 1e-2\n",
"n_hidden = 20\n",
"\n",
Expand Down Expand Up @@ -652,7 +652,7 @@
"torch.manual_seed(314)\n",
"\n",
"# Hyperparameters\n",
"batch_size = 8\n",
"batch_size = 32\n",
"epochs = 1000\n",
"learning_rate = 1e-3\n",
"n_hidden = 20\n",
Expand Down Expand Up @@ -685,6 +685,13 @@
"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
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
jupyter-book
matplotlib
plotly
numpy
pandas
plotly
torch
lightning
kora
--extra-index-url https://download.pytorch.org/whl/cpu

0 comments on commit c8bc440

Please sign in to comment.