Downloads · 30 days
9
26% of all-time downloads
Z-H-Che/ratemyprofessors-reviews-sentiment-analysis-5000-samples
ratemyprofessors-reviews-sentiment-analysis-5000-samples is a text classification model from Z-H-Che. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
9
26% of all-time downloads
All-time downloads
34
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of distilbert-base-uncased on the ratemyprofessors-reviews-2-labels dataset. It achieves the following results on the evaluation set:
DistilBERT is a transformers model, smaller and faster than BERT, which was pretrained on the same corpus in a self-supervised fashion, using the BERT base model as a teacher. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts using the BERT base model. More precisely, it was pretrained with three objectives:
Distillation loss: the model was trained to return the same probabilities as the BERT base model. Masked language modeling (MLM): this is part of the original training loss of the BERT base model. When taking a sentence, the model randomly masks 15% of the words in the input then run the entire masked sentence through the model and has to predict the masked words. This is different from traditional recurrent neural networks (RNNs) that usually see the words one after the other, or from autoregressive models like GPT which internally mask the future tokens. It allows the model to learn a bidirectional representation of the sentence. Cosine embedding loss: the model was also trained to generate hidden states as close as possible as the BERT base model. This way, the model learns the same inner representation of the English language than its teacher model, while being faster for inference or downstream tasks.
The ratemyprofessors-reviews-2-labels dataset is a collection of reviews on RateMyProfessors gathered via webscraping. This model's finetuning used 5000 random rows of that dataset as training data and 500 other random rows as test data.
More information needed
The following hyperparameters were used during training: