Skip to content

Commit

Permalink
fix model
Browse files Browse the repository at this point in the history
  • Loading branch information
Owyii committed Apr 14, 2024
1 parent 966784f commit a34d5a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mACHINE-LEARNINGS/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ def execute(train_set_size, batch_size, lr, epochs, is_verbose, weight_decay):
"""
model = DankCNN()
model = model.to(device)
optimizer = torch.optim.RMSprop(model.parameters(), lr=.1, alpha=.99, eps=1e-08, weight_decay=0, momentum=0, centered=False)
loss_function = torch.nn.HingeEmbeddingLoss()
# optimizer = torch.optim.RMSprop(model.parameters(), lr=.001, alpha=.99, eps=1e-08, weight_decay=0, momentum=0, centered=False)
optimizer = torch.optim.Adam(model.parameters(), lr=0.001, betas=(0.9, 0.999), eps=1e-08, weight_decay=0)
# loss_function = torch.nn.HingeEmbeddingLoss()
loss_function = torch.nn.BCELoss()

"""
TRAINING PHASE
Expand Down

0 comments on commit a34d5a3

Please sign in to comment.