updates
This commit is contained in:
parent
1e3fb6566c
commit
ccfd44c2f8
|
@ -259,7 +259,7 @@ def compute_loss(p, targets, model): # predictions, targets, model
|
||||||
|
|
||||||
# Define criteria
|
# Define criteria
|
||||||
MSE = nn.MSELoss()
|
MSE = nn.MSELoss()
|
||||||
CE = nn.CrossEntropyLoss(weight=model.class_weights)
|
CE = nn.CrossEntropyLoss() # (weight=model.class_weights)
|
||||||
BCE = nn.BCEWithLogitsLoss()
|
BCE = nn.BCEWithLogitsLoss()
|
||||||
|
|
||||||
# Compute losses
|
# Compute losses
|
||||||
|
|
Loading…
Reference in New Issue