BestLeastRecentlyViewedSaliencyStrategy
Class in Yarn.Saliency
Inherits from System.Object
Summary
A content saliency strategy that returns the first of the best, least-recently seen choices from the provided options.
public class BestLeastRecentlyViewedSaliencyStrategy : IContentSaliencyStrategyRemarks
This strategy stores information about the number of times each piece of
content has been seen in the provided Yarn.Saliency.BestLeastRecentlyViewedSaliencyStrategy.VariableStorage .
Constructors
| Name | Description |
|---|---|
| BestLeastRecentlyViewedSaliencyStrategy(IVariableStorage) | Initalises a new instance of the BestLeastRecentlyViewedSaliencyStrategy class. |
Methods
| Name | Description |
|---|---|
| ContentWasSelected(ContentSaliencyOption) | Called by Yarn Spinner to indicate that a piece of salient content has been selected, and this system should update any state related to how it selects content. |
| QueryBestContent(IEnumerable | Chooses an item from content that is the most appropriate (or salient ) for the user’s current context. |