sklr.base.PartialLabelRankerMixin

class sklr.base.PartialLabelRankerMixin[source]

Mixin class for all partial label rankers in scikit-lr.

Methods

score(X, Y[, sample_weight])

Return the mean Kendall rank correlation coefficient :math: tau_X on the given test data and partial rankings.

score(X, Y, sample_weight=None)[source]

Return the mean Kendall rank correlation coefficient :math: tau_X on the given test data and partial rankings.

Parameters
  • X (array-like of shape (n_samples, n_features)) – The test samples.

  • Y (array-like of shape (n_samples, n_classes)) – The true partial rankings for X.

  • sample_weight (array-like of shape (n_samples,), default=None) – The sample weights. If None, then samples are equally weighted.

Returns

score – The mean Kendall rank correlation coefficient \(\tau_X\) of self.predict(X) with respect to Y.

Return type

float