https://github.com/findus23/nn_evaluate
Toy implementation of Neural Network evaluation in multiple languages
https://github.com/findus23/nn_evaluate
Last synced: about 1 year ago
JSON representation
Toy implementation of Neural Network evaluation in multiple languages
- Host: GitHub
- URL: https://github.com/findus23/nn_evaluate
- Owner: Findus23
- Created: 2021-03-21T18:12:48.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-17T13:50:03.000Z (about 5 years ago)
- Last Synced: 2025-01-23T22:24:53.819Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://nn.lw1.at
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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/