Novelty Metrics - API Reference¶
Auto-generated documentation for novelty metric classes.
warprec.evaluation.metrics.novelty.efd.EFD
¶
Bases: UserAverageTopKMetric
Expected Free Discovery at K metric.
This metric measures the recommender system's ability to suggest items that the user has not already seen (i.e., not present in the training set).
Attributes:
| Name | Type | Description |
|---|---|---|
novelty_profile |
Tensor
|
The item novelty lookup tensor. |
relevance |
str
|
The type of relevance to use for computation. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
k
|
int
|
The cutoff for recommendations. |
required |
num_users
|
int
|
Number of users in the training set. |
required |
item_interactions
|
Tensor
|
The counts for item interactions in training set. |
required |
dist_sync_on_step
|
bool
|
Torchmetrics parameter. |
False
|
relevance
|
str
|
The type of relevance to use for computation. |
'binary'
|
**kwargs
|
Any
|
Additional keyword arguments. |
{}
|
Source code in warprec/evaluation/metrics/novelty/efd.py
name
property
¶
The name of the metric.
warprec.evaluation.metrics.novelty.epc.EPC
¶
Bases: UserAverageTopKMetric
Expected Popularity Complement at K metric.
This metric measures the capability of the recommender system to suggest items that are not popular.
Attributes:
| Name | Type | Description |
|---|---|---|
novelty_profile |
Tensor
|
The item novelty lookup tensor. |
relevance |
str
|
The type of relevance to use for computation. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
k
|
int
|
The cutoff for recommendations. |
required |
num_users
|
int
|
Number of users in the training set. |
required |
item_interactions
|
Tensor
|
The counts for item interactions in training set. |
required |
dist_sync_on_step
|
bool
|
Torchmetrics parameter. |
False
|
relevance
|
str
|
The type of relevance to use for computation. |
'binary'
|
**kwargs
|
Any
|
Additional keyword arguments. |
{}
|
Source code in warprec/evaluation/metrics/novelty/epc.py
name
property
¶
The name of the metric.