GenreClassificationResult<T>

Models & Types · AiDotNet.Interfaces

Result of genre classification.

Constructors

Constructor Summary
GenreClassificationResult()

Properties

Property Summary
GenreFeatures<T> Features { get; set; } Gets or sets extracted features used for classification (legacy API compatibility).
IReadOnlyDictionary<string, T> AllProbabilities { get; } Gets all probabilities as a dictionary (legacy API compatibility).
IReadOnlyList<GenrePrediction<T>> AllGenres { get; set; } Gets or sets all predicted genres (for multi-label classification).
IReadOnlyList<ValueTuple<string, T>> TopPredictions { get; } Gets top predictions as a list of tuples (legacy API compatibility).
T Confidence { get; set; } Gets or sets the confidence for the predicted genre.
bool IsMultiLabel { get; set; } Gets or sets whether this is a multi-label result.
string PredictedGenre { get; set; } Gets or sets the predicted genre (or primary genre if multi-label).