Closed azespinoza closed 2 years ago
@azespinoza Thank you for the nice comments! 😃
If I understand right, you want to get the predictions of the model only, without giving any labels. If that is the case:
The batch that goes into the model is a dictionary that contains the key labels
. You can just remove that and also remove the true_labels
so you only get the prediction of the model.
If my understanding is off, please provide an example or more explanation to understand what is it you are trying to do.
Yes this helps a lot! Thank you for the detailed answer!
Hi,
Thanks for creating these helpers and finetuning tutorials. I've found this repo to be very helpful and appreciate all the work you've put into it :).
One question I have is in regards to the following
validation
function from your gpt2-finetune-classification notebook. Here is the code snippet:I'm trying to repurpose this to predict on unlabeled data. Although the comments in the code suggest that we have not provided the labels, I am getting errors when feeding in a dictionary with one extra
other
category (indicating that no class has been assigned):Is there a good way to change this to exclude the labels and label dictionary from being fed into the model, and also to exclude the loss from being calculated? Sorry if there is an obvious solution, it seems to be evading me right now.
Thank you for the help!