Skip to content

Commit

Permalink
docs edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ASEM000 committed Jul 24, 2023
1 parent 49c9023 commit 5c05315
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/notebooks/bilstm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch: 100/100\tBatch: 100/100\tBatch loss: 1.760744e-03\tTime: 0.020\r"
"Epoch: 100/100\tBatch: 100/100\tBatch loss: 1.760744e-03\tTime: 0.025\r"
]
},
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x13cab12a0>"
"<matplotlib.legend.Legend at 0x1490affa0>"
]
},
"execution_count": 5,
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"source": [
"k1, k2, k3 = jax.random.split(jax.random.PRNGKey(0), 3)\n",
"\n",
"\n",
"@sk.autoinit\n",
"class ConvNet(sk.TreeClass):\n",
" conv1: sk.nn.Conv2D = sk.nn.Conv2D(1, 32, 3, key=k1, padding=\"valid\")\n",
" pool1: sk.nn.MaxPool2D = sk.nn.MaxPool2D(2, 2)\n",
Expand Down Expand Up @@ -201,7 +201,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch: 001/001\tBatch: 468/468\tBatch loss: 2.040178e-01\tBatch accuracy: 0.984375\tTime: 18.339\r"
"Epoch: 001/001\tBatch: 468/468\tBatch loss: 2.040178e-01\tBatch accuracy: 0.984375\tTime: 18.784\r"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion serket/nn/random_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from serket.nn.resize import Resize2D
from serket.nn.utils import Range


@sk.autoinit
class RandomApply(sk.TreeClass):
"""
Randomly applies a layer with probability p.
Expand Down

0 comments on commit 5c05315

Please sign in to comment.