Table of Contents

Class ContentClassificationResult<T>

Namespace
AiDotNet.AdversarialRobustness.Safety
Assembly
AiDotNet.dll

Result of content classification by an ML model.

public class ContentClassificationResult<T>

Type Parameters

T

The 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

string

IsHarmful

Gets or sets whether any harmful content was detected.

public bool IsHarmful { get; set; }

Property Value

bool

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

string

RecommendedAction

Gets or sets the recommended action based on classification.

public string RecommendedAction { get; set; }

Property Value

string