Skip to content

BestLeastRecently.* Saliency Strategy documentation misleading #95

@kinggra1

Description

@kinggra1

Saliency Strategy Documentation seems to indicate that the possible options will be sorted by Score and then by Views for each of the "BestLeastRecnetly.*" strategies, but the code seems to do the opposite (sorts by views, then sorts by complexity score)

Random Best Least Recently Viewed: The items that have not failed any conditions are sorted by score, and then by how many times they have been selected by this strategy. If there is more than one best item remaining, a random one of these is selected.

https://github.com/YarnSpinnerTool/YarnSpinner/blob/f7c45109d53ffb78124575e57688421b5d0fa7f8/YarnSpinner/Saliency/RandomBestLeastRecentlyViewedSaliencyStrategy.cs#L90C1-L101C25

Not sure if this is a documentation clarity issue, but I expected the opposite behavior (among all options with the highest complexity, select the least recently viewed one) not what I've tested (among all options that have been viewed the last # of times, select the one with highest complexity)

Not blocking, just writing my own custom strategy now that I know, but wanted to check for future reader clarity :)

Thanks!

Metadata

Metadata

Assignees

Labels

DocumentationImprovements or additions to documentationFollowupInitial problem has been solved but other changes are needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions