Downloads · 30 days
4
19% of all-time downloads
bkhang/distilbert-no-mans-sky-sentiment-v2
distilbert-no-mans-sky-sentiment-v2 is a machine learning model from bkhang. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned distilbert-base-uncased on Steam reviews (2016–2024) for binary sentiment classification.
Downloads · 30 days
4
19% of all-time downloads
All-time downloads
21
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Fine-tuned distilbert-base-uncased on Steam reviews (2016–2024) for binary sentiment classification.
| Metric | Value |
|---|---|
| Accuracy | 0.9366 |
| Precision | 0.9698 |
| Recall | 0.9481 |
| F1 | 0.9588 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tokenizer = AutoTokenizer.from_pretrained("bkhang/distilbert-no-mans-sky-sentiment-v2")
model = AutoModelForSequenceClassification.from_pretrained("bkhang/distilbert-no-mans-sky-sentiment-v2")
text = "The update finally made the game worth playing!"
inputs = tokenizer(text, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
prob = torch.softmax(logits, dim=1)[0,1].item()
print(prob)