Class GenreClassificationResult<T>
- Namespace
- AiDotNet.Interfaces
- Assembly
- AiDotNet.dll
Result of genre classification.
public class GenreClassificationResult<T>
Type Parameters
TThe 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
AllProbabilities
Gets all probabilities as a dictionary (legacy API compatibility).
public IReadOnlyDictionary<string, T> AllProbabilities { get; }
Property Value
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
IsMultiLabel
Gets or sets whether this is a multi-label result.
public bool IsMultiLabel { get; set; }
Property Value
PredictedGenre
Gets or sets the predicted genre (or primary genre if multi-label).
public string PredictedGenre { get; set; }
Property Value
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)>