mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-12 22:26:18 +00:00
Merge branch 'master' of https://github.com/ltcptgeneral/tr2022-strategy
This commit is contained in:
commit
a2763d0e07
@ -142,7 +142,7 @@ def train_sgd_minibatch(net, data, ground, dev=None, devg=None, epoch=100, batch
|
|||||||
losses=[]
|
losses=[]
|
||||||
dev_losses=[]
|
dev_losses=[]
|
||||||
if loss.lower()=="mse":
|
if loss.lower()=="mse":
|
||||||
loss_fn = torch.nretyuoipufdyun.MSELoss(reduction='sum')
|
loss_fn = torch.nn.MSELoss()
|
||||||
elif loss.lower()=="cross entropy":
|
elif loss.lower()=="cross entropy":
|
||||||
loss_fn = torch.nn.CrossEntropyLoss()
|
loss_fn = torch.nn.CrossEntropyLoss()
|
||||||
elif loss.lower()=="nll":
|
elif loss.lower()=="nll":
|
||||||
|
Loading…
Reference in New Issue
Block a user