# Module: tf_agents.bandits.policies.ranking_policy

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/bandits/policies/ranking_policy.py) |

Ranking policy.

## Classes

[`class CosinePenalizedPlackettLuce`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/CosinePenalizedPlackettLuce): A distribution that samples items based on scores and cosine similarity.

[`class DescendingScoreRankingPolicy`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/DescendingScoreRankingPolicy): A policy that is deterministically ranks elements based on their scores.

[`class DescendingScoreSampler`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/DescendingScoreSampler): Base neural network module class.

[`class NoPenaltyPlackettLuce`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/NoPenaltyPlackettLuce): Identical to PlackettLuce, with input signature modified to our needs.

[`class NoPenaltyRankingPolicy`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/NoPenaltyRankingPolicy): A class implementing ranking policies in TF Agents.

[`class PenalizeCosineDistanceRankingPolicy`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/PenalizeCosineDistanceRankingPolicy): A Ranking policy that penalizes scores based on cosine distance.

[`class PenalizedPlackettLuce`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/PenalizedPlackettLuce): A distribution that samples permutations and penalizes item scores.

[`class RankingPolicy`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/policies/ranking_policy/RankingPolicy): A class implementing ranking policies in TF Agents.