Python API¶
Models¶
|
Probabilistic Labels Trees (PLTs) model with linear node estimators, using CPP core. |
|
Hierarchical Softmax model with linear node estimators, using CPP core. |
|
Binary Relevance model with linear node estimators, using CPP core |
|
One Versus Rest model with linear node estimators, using CPP core. |
Datasets¶
|
Downloads the dataset from the internet and puts it in root directory. |
|
Downloads the dataset from the internet and puts it in root directory. |
Load data in the libsvm format into sparse CSR matrix. |
Measures¶
|
Calculate precision at 1-k places. |
|
Calculate recall at 1-k places. |
|
Calculate coverage at 1-k places. |
|
Calculate Discounted Cumulative Gain (DCG) at 1-k places. |
|
Calculate normalized Discounted Cumulative Gain (nDCG) at 1-k places. |
|
Calculate inverse propensity as proposed in Jain et al. |
|
Calculate Propensity Scored Precision (PSP) at 1-k places. |
|
Calculate Propensity Scored Recall (PSR) at 1-k places. |
|
Calculate Propensity Scored Discounted Cumulative Gain (PSDCG) at 1-k places. |
|
Calculate Propensity normalized Scored Discounted Cumulative Gain (PSnDCG) at 1-k places. |
|
Calculate unnormalized hamming loss - average number of misclassified labels. |
|
Calculate F1 measure, also known as balanced F-score or F-measure. |