openskill.models.common
¶
Common functions for all models.
Module Contents¶
Functions¶
|
Returns the indices that would sort a vector. |
|
Transpose a matrix. |
|
Sorting with 'competition ranking'. Pure python equivalent of |
|
Takes value of a number and makes it negative. |
- openskill.models.common._arg_sort(vector)[source]¶
Returns the indices that would sort a vector.
- Parameters:
vector (List[Any]) – A list of objects.
- Returns:
Rank vector without ties.
- Return type:
List[int]
- openskill.models.common._matrix_transpose(matrix)[source]¶
Transpose a matrix.
- Parameters:
matrix (List[List[Any]]) – A matrix in the form of a list of lists.
- Returns:
A transposed matrix.
- Return type:
List[List[Any]]