You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using this git to run a cross encoder model, hope to use a customized function. The code is like below. The thing is that using model.fit, it does not specify which is the output.
In future, I'll also add another argument in this customized loss to compute lambdarank loss. Thanks!
def my_loss(output, label):
loss = ...
return loss
model.fit(train_dataloader=train_dataloader,
loss_fct = myloss)
The text was updated successfully, but these errors were encountered:
Hi, I'm using this git to run a cross encoder model, hope to use a customized function. The code is like below. The thing is that using model.fit, it does not specify which is the output.
In future, I'll also add another argument in this customized loss to compute lambdarank loss. Thanks!
The text was updated successfully, but these errors were encountered: