second attempt

This commit is contained in:
pietrzakkuba 2021-05-24 21:01:20 +02:00
parent 76fffb4848
commit 3e0857c6c7
3 changed files with 526 additions and 526 deletions

File diff suppressed because it is too large Load Diff

View File

@ -55,9 +55,9 @@ test_x = [get_word2vec(document) for document in test_x]
print('model training')
network = MyNeuralNetwork(300, 600, 1)
criterion = torch.nn.BCELoss()
optimizer = torch.optim.SGD(network.parameters(), lr=0.1)
epochs = 5
batch_size = 5
optimizer = torch.optim.SGD(network.parameters(), lr=0.02)
epochs = 15
batch_size = 15
for epoch in range(epochs):
network.train()

File diff suppressed because it is too large Load Diff