GonzaloA/fake_news
Viewer β’ Updated β’ 40.6k β’ 1.62k β’ 28
Fine-tuned DistilBERT for fake news detection. Trained on the GonzaloA/fake_news dataset (24,353 articles).
from transformers import pipeline
pipe = pipeline("text-classification",
model="RazakAIhub/distilbert-fake-news-classifier")
result = pipe("WASHINGTON (Reuters) - NASA confirms water ice on moon.")
print(result)
This model was trained on Reuters articles (real) vs opinion/partisan content (fake). It learned to detect writing style, not factual accuracy.
This means it will misclassify casual-but-true statements as fake. A more robust dataset with style-balanced examples is needed for production use.
Spurious correlation: models latch onto shortcut features in training data. High accuracy does not mean the model learned the right thing.
Razak Shaik β VIT-AP University, CS Final Year