Run this model with HF Jobs

Run newsmediabias/UnBIAS-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/newsmediabias/UnBIAS-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/newsmediabias/UnBIAS-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

UnBIAS Classification Model Card

Model Description

UnBIAS is a state-of-the-art model designed to classify texts based on their bias levels. The model categorizes texts into three classes: "Highly Biased", "Slightly Biased", and "Neutral".

Model Architecture

The model is built upon the bert-base-uncased architecture and has been fine-tuned on a custom dataset for the specific task of bias detection.

Dataset

The model was trained on a dataset containing news articles from various sources, annotated with one of the three bias levels. The dataset contains:

  • Highly Biased: 4000 articles
  • Slightly Biased: 4000 articles
  • Neutral: 4000 articles

Training Procedure

The model was trained using the Adam optimizer for 10 epochs.

Performance

On our validation set, the model achieved:

  • Accuracy: 95%
  • F1 Score (Highly Biased): 89%
  • F1 Score (Slightly Biased): 85%
  • F1 Score (Neutral): 82%

(Replace placeholders with actual performance metrics.)

How to Use

To use this model for text classification, use the following code:

from transformers import pipeline
from transformers import AutoTokenizer, AutoModelForSequenceClassification
 
tokenizer = AutoTokenizer.from_pretrained("newsmediabias/UnBIAS-classifier")
model = AutoModelForSequenceClassification.from_pretrained("newsmediabias/UnBIAS-classifier")

classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
result = classifier("Women are bad driver.")
print(result)

Developed by Shaina Raza

Downloads last month
243
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support