Skip to content

Commit 3d37e77

Browse files
committed
init net
1 parent dadac22 commit 3d37e77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ So please feel free to read the codes.
1313

1414
## Simple usage
1515
Build a network with a python class and train it.
16-
```
16+
```python
1717
import neuralnets as nn
1818

1919
class Net(nn.Module):
@@ -30,7 +30,7 @@ class Net(nn.Module):
3030

3131
The training procedure starts by defining a optimizer and loss.
3232

33-
```
33+
```python
3434
net = Net()
3535
opt = nn.optim.Adam(net.params, lr=0.1)
3636
loss_fn = nn.losses.MSE()

0 commit comments

Comments
 (0)