mirror of
https://github.com/Findus23/nn_evaluate.git
synced 2024-09-19 14:53:44 +02:00
add readme
This commit is contained in:
parent
fbd789d92e
commit
0224eb0ff5
1 changed files with 23 additions and 0 deletions
23
typescript/README.md
Normal file
23
typescript/README.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Toy implementation of Neural Network evaluation in multiple languages
|
||||
|
||||
Neural network trained with pytorch:
|
||||
```python
|
||||
class Network(nn.Module):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.hidden = nn.Linear(6, 50)
|
||||
self.output = nn.Linear(50, 3)
|
||||
|
||||
self.sigmoid = nn.Sigmoid()
|
||||
self.relu = nn.ReLU()
|
||||
|
||||
def forward(self, x):
|
||||
x = self.hidden(x)
|
||||
x = self.relu(x)
|
||||
x = self.output(x)
|
||||
x = self.sigmoid(x)
|
||||
|
||||
return x
|
||||
```
|
||||
|
||||
Proper solution (typescript version): https://nn.lw1.at/
|
Loading…
Reference in a new issue