Class ContentClassificationResult<T>
- Namespace
- AiDotNet.AdversarialRobustness.Safety
- Assembly
- AiDotNet.dll
Result of content classification by an ML model.
public class ContentClassificationResult<T>
Type Parameters
TThe numeric data type used for calculations.
- Inheritance
-
ContentClassificationResult<T>
- Inherited Members
Properties
CategoryScores
Gets or sets the scores for each category.
public Dictionary<string, T> CategoryScores { get; set; }
Property Value
- Dictionary<string, T>
DetectedCategories
Gets or sets the list of categories that exceed the detection threshold.
public string[] DetectedCategories { get; set; }
Property Value
- string[]
Explanation
Gets or sets any explanation or reasoning for the classification.
public string Explanation { get; set; }
Property Value
IsHarmful
Gets or sets whether any harmful content was detected.
public bool IsHarmful { get; set; }
Property Value
OverallConfidence
Gets or sets the overall confidence score for the classification.
public T OverallConfidence { get; set; }
Property Value
- T
PrimaryCategory
Gets or sets the primary detected category (the one with highest score).
public string PrimaryCategory { get; set; }
Property Value
RecommendedAction
Gets or sets the recommended action based on classification.
public string RecommendedAction { get; set; }