Great content. Just a suggestion, whenever you are writing a tensor for the first time, try to write the dimension of the tensor as a comment. If the dimension gets updated (for example by taking argmax) write the updated dimension on the side.
Thanks for the tutorial. For the cross-entropy requirements, we needed to use the range 0-4 instead of 1-5, could not we use just one line of code for mapping instead of a multiline function? I mean this line: df['stars'] = df['stars'] - 1 One more question, do we need to balance the size of the classes?
Absolutely you can with some minor code changes. I just put a file for the general guideline to do this. Check out - github.com/rohan-paul/MachineLearning-DeepLearning-Code-for-my-RUclips-Channel/blob/master/NLP/Fine_Tuning_HuggingFace_Transformer_BERT_Yelp_Customer_Review_Predictions/Example_Code_Using_HF_Trainer_API.ipynb
Great content. Just a suggestion, whenever you are writing a tensor for the first time, try to write the dimension of the tensor as a comment. If the dimension gets updated (for example by taking argmax) write the updated dimension on the side.
Thanks Anirban for the suggestion, will try to include that.
Can this be considered a regression problem ? Since, there are reviews which are numerical in nature ?
Thanks for the tutorial. For the cross-entropy requirements, we needed to use the range 0-4 instead of 1-5, could not we use just one line of code for mapping instead of a multiline function? I mean this line: df['stars'] = df['stars'] - 1
One more question, do we need to balance the size of the classes?
Yes you could use the one liner for sure. Thats actually better.
How to fine tune bert for roman urdu datset?
Could you achive this just using HuggingFace Trainer Api instead of doing it all manually via PyTorch?
Absolutely you can with some minor code changes. I just put a file for the general guideline to do this.
Check out - github.com/rohan-paul/MachineLearning-DeepLearning-Code-for-my-RUclips-Channel/blob/master/NLP/Fine_Tuning_HuggingFace_Transformer_BERT_Yelp_Customer_Review_Predictions/Example_Code_Using_HF_Trainer_API.ipynb
Thanks for the nice educative videos!!
Glad you liked @kuberchaurasya
Zoom in can't see clearly
Sorry about that, will resolve for sure.