Predict the toxicity rating of comment made by the user.
Last updated Jan 17, 2026
49
Stars
33
Forks
0
Issues
0
Stars/day
Attention Score
36
Topics
Language breakdown
No language data available.
▸ Files
click to expand
README
Toxicity Classification:
1. Business Problem:
Source: https://www.kaggle.com/c/jigsaw-unintended-bias-in-toxicity-classificationDescription: https://www.kaggle.com/c/jigsaw-unintended-bias-in-toxicity-classification/overview/description
Problem Statement: Given a comment made by the user, predict the toxicity of the comment.
2. Machine Learning Problem Formulation:
2.1 Data:
- Source: https://www.kaggle.com/c/jigsaw-unintended-bias-in-toxicity-classification/data
- We have one single csv file for training and one cvs file to test.
- Columns in train data:
2.2 Example Datapoints and Labels:
Comment: i'm a white woman in my late 60's and believe me, they are not too crazy about me either!!
- Toxicity Labels: All 0.0
- Identity Mention Labels: female: 1.0, white: 1.0 (all others 0.0)
- Toxicity Labels: All 0.0
- Identity Mention Labels: female: 0.8 (all others 0.0)
- Toxicity Labels: All 0.0
- Identity Mention Labels: homosexualgayor_lesbian: 0.8, bisexual: 0.6, transgender: 0.3 (all others 0.0)
2.3 Type of Machine Learning Problem:
We have to predict the toxicity level(target attribute). The values range from 0 to 1 inclusive. This is a regression problem. It can also be treated as a classification problem if we take every value below 0.5 to be non-toxic and above it to be toxic, we would then get a binary classification problem.2.4 Performance Metric:
The competition will use ROC_AUC as the metric after converting the numeric target variable into a categorical variable by using a threshold of 0.5. Any comment above 0.5 will be assumed to be toxic and below it non-toxic. For our training and evaluation we will use the MSE(Mean Squared Error). More on evaluation: https://www.kaggle.com/c/jigsaw-unintended-bias-in-toxicity-classification/overview/evaluation2.5 Machine Learning Objectives and Constraints:
Objectives: Predict the toxicity of a comment made by the user. (0 -> not toxic, 1 -> highest toxicity level)
Constraints:
- The model should be fast to predict the toxicity rating.
- Interpretability is not needed.
🔗 More in this category