leaderbot.models.Davidson.rank#
- Davidson.rank()#
Rank competitors based on their scores.
- Returns:
- rnknp.ndarray
A 1D array of the size
n_agents
, containing the zero-based indices that rank agents from the higher to lowest scores.
- Raises:
- RuntimeError
If the model is not trained before calling this method.
See also
Examples
>>> from leaderbot.data import load >>> from leaderbot.models import Davidson >>> # Create a model >>> data = load() >>> model = Davidson(data) >>> # Train the model >>> model.train() >>> # Leaderboard rank and plot >>> rnk = model.rank()