API reference#
This is the class and function reference of scikit-lr. Each entry links to a page with its full description, and the user guide gives more details on how to use them.
sklr: Settings and information tools#
Print useful debugging information. |
sklr.base: Base classes and utility functions#
Mixin class for all label rankers in scikit-lr. |
|
Mixin class for all partial label rankers in scikit-lr. |
|
|
Return |
|
Return |
sklr.dummy: Dummy estimators#
See the Dummy estimators section of the user guide for further details.
|
Label ranker that predicts the same ranking for every sample. |
|
Partial label ranker that predicts the same bucket order for every sample. |
sklr.metrics: Metrics#
See the Metrics and scoring: evaluating the rankers section of the user guide for further details.
Scoring interface#
|
Get a scorer of label ranking or partial label ranking from its name. |
Get the names of all the scorers of label ranking and partial label ranking. |
Label ranking metrics#
|
Compute the Kendall distance between label rankings. |
|
Compute Kendall's \(\tau\) between label rankings. |
Partial label ranking metrics#
|
Compute the \(\tau_x\) coefficient between partial label rankings. |
sklr.neighbors: Nearest neighbors#
See the Nearest neighbors section of the user guide for further details.
|
Label ranker based on the k-nearest neighbors. |
|
Partial label ranker based on the k-nearest neighbors. |
sklr.tree: Decision trees#
See the Decision trees section of the user guide for further details.
|
A decision tree label ranker. |
|
A decision tree partial label ranker. |
sklr.utils: Utilities#
|
Input validation on the rankings of a target. |
Determine the type of rankings indicated by the target. |