AI engineering glossary · Evals guardrails AI security

What is toxicity classification?

Toxicity classification: Automatically labelling text as rude, hateful, threatening or otherwise abusive, usually with a model that outputs a probability for each category. It powers moderation filters and safety evaluations, but can wrongly flag reclaimed language or dialects, so thresholds need care.

Level: intermediateTopic: Evals guardrails AI security

Toxicity classification: an example

A classifier gives a comment a 0.92 toxicity score, so it is hidden pending review, while a 0.10 comment passes.

Related terms

More Evals guardrails AI security terms

Where you learn it

Toxicity classification is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.