Table of Contents

Class GenreClassificationResult<T>

Namespace
AiDotNet.Interfaces
Assembly
AiDotNet.dll

Result of genre classification.

public class GenreClassificationResult<T>

Type Parameters

T

The numeric type used for calculations.

Inheritance
GenreClassificationResult<T>
Inherited Members

Properties

AllGenres

Gets or sets all predicted genres (for multi-label classification).

public IReadOnlyList<GenrePrediction<T>> AllGenres { get; set; }

Property Value

IReadOnlyList<GenrePrediction<T>>

AllProbabilities

Gets all probabilities as a dictionary (legacy API compatibility).

public IReadOnlyDictionary<string, T> AllProbabilities { get; }

Property Value

IReadOnlyDictionary<string, T>

Confidence

Gets or sets the confidence for the predicted genre.

public T Confidence { get; set; }

Property Value

T

Features

Gets or sets extracted features used for classification (legacy API compatibility).

public GenreFeatures<T>? Features { get; set; }

Property Value

GenreFeatures<T>

IsMultiLabel

Gets or sets whether this is a multi-label result.

public bool IsMultiLabel { get; set; }

Property Value

bool

PredictedGenre

Gets or sets the predicted genre (or primary genre if multi-label).

public string PredictedGenre { get; set; }

Property Value

string

TopPredictions

Gets top predictions as a list of tuples (legacy API compatibility).

public IReadOnlyList<(string Genre, T Probability)> TopPredictions { get; }

Property Value

IReadOnlyList<(string Label, T Probability)>