Skip to content

Commit

Permalink
Feature/auc_metrics (#149)
Browse files Browse the repository at this point in the history
- Added PAP and PartialAUC ranking metrics
Closes #133, Closes #134
  • Loading branch information
blondered authored Jun 17, 2024
1 parent 9369dde commit 1626ab4
Show file tree
Hide file tree
Showing 7 changed files with 872 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Extended Theory&Practice RecSys baselines tutorial ([#139](https://github.com/MobileTeleSystems/RecTools/pull/139))
- `MetricsApp` to create plotly scatterplot widgets for metric-to-metric trade-off analysis ([#140](https://github.com/MobileTeleSystems/RecTools/pull/140))
- `Intersection` metric ([#148](https://github.com/MobileTeleSystems/RecTools/pull/148))
- `PartialAUC` and `PAP` metrics ([#149](https://github.com/MobileTeleSystems/RecTools/pull/149))
- New params (`tol`, `maxiter`, `random_state`) to the `PureSVD` model ([#130](https://github.com/MobileTeleSystems/RecTools/pull/130))

### Fixed
Expand Down
13 changes: 9 additions & 4 deletions rectools/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@
-------
`metrics.Precision`
`metrics.Recall`
`metrics.F1Beta`
`metrics.Accuracy`
`metrics.MCC`
`metrics.MAP`
`metrics.NDCG`
`metrics.MRR`
`metrics.HitRate`
`metrics.PartialAUC`
`metrics.PAP`
`metrics.F1Beta`
`metrics.Accuracy`
`metrics.MCC`
`metrics.MeanInvUserFreq`
`metrics.IntraListDiversity`
`metrics.AvgRecPopularity`
`metrics.Serendipity`
`metrics.HitRate`
`metrics.Intersection`
Tools
Expand All @@ -44,6 +46,7 @@
`metrics.SparsePairwiseHammingDistanceCalculator`
"""

from .auc import PAP, PartialAUC
from .classification import MCC, Accuracy, F1Beta, HitRate, Precision, Recall
from .distances import (
PairwiseDistanceCalculator,
Expand All @@ -67,6 +70,8 @@
"HitRate",
"MAP",
"NDCG",
"PartialAUC",
"PAP",
"MRR",
"MeanInvUserFreq",
"IntraListDiversity",
Expand Down
Loading

0 comments on commit 1626ab4

Please sign in to comment.