1
0
Fork 0
mirror of https://github.com/Findus23/nn_evaluate.git synced 2024-09-16 11:23:44 +02:00
Toy implementation of Neural Network evaluation in multiple languages https://nn.lw1.at
Find a file
2021-04-17 15:49:54 +02:00
julia add julia version 2021-03-21 19:08:49 +01:00
python add python version 2021-03-21 19:08:39 +01:00
rust add rust version 2021-03-21 19:09:55 +01:00
typescript improve the design 2021-04-17 15:49:54 +02:00
.gitignore add rust version 2021-03-21 19:09:55 +01:00
pytorch_model.json add model 2021-03-21 19:08:27 +01:00
README.md move readme to right directory 2021-03-21 19:14:18 +01:00

Toy implementation of Neural Network evaluation in multiple languages

Neural network trained with pytorch:

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/