refactor(network.py): annotacte activation functions

This commit is contained in:
2026-01-18 18:23:14 +01:00
parent 08cbb807f9
commit 17be224d25
2 changed files with 7 additions and 8 deletions

View File

@@ -224,7 +224,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "f6de25ea",
"metadata": {},
"outputs": [],
@@ -284,7 +284,7 @@
" # update bias: bias -= learning_rate * dC/dy * dy/dz * dz/db\n",
" self.bias -= learning_rate * dcost_dy * dy_dz * dz_db\n",
"\n",
" # return gradient vector len(input) dimension\n",
" # return gradient vector len(weight) dimension\n",
" return [dcost_dy * dy_dz * w for w in self.weight]"
]
},
@@ -353,7 +353,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.4"
"version": "3.13.5"
}
},
"nbformat": 4,