Metrics#

Rating#

Mean Absolute Error (MAE)#

class cornac.metrics.MAE[source]#

Mean Absolute Error.

name#

Name of the measure.

Type:

string, value: ‘MAE’

Mean Squared Error (MSE)#

class cornac.metrics.MSE[source]#

Mean Squared Error.

name#

Name of the measure.

Type:

string, value: ‘MSE’

Root Mean Squared Error (RMSE)#

class cornac.metrics.RMSE[source]#

Root Mean Squared Error.

name#

Name of the measure.

Type:

string, value: ‘RMSE’

Ranking#

Area Under the Curve (AUC)#

class cornac.metrics.AUC[source]#

Area Under the ROC Curve (AUC).

References

https://arxiv.org/ftp/arxiv/papers/1205/1205.2618.pdf

Fmeasure (F1)#

class cornac.metrics.FMeasure(k=-1)[source]#

F-measure@K.

Parameters:

k (int or list, optional, default: -1 (all)) – The number of items in the top@k list. If None, all items will be considered.

Hit Ratio (HitRatio)#

class cornac.metrics.HitRatio(k=-1)[source]#

Hit Ratio.

Parameters:

k (int, optional, default: -1 (all)) – The number of items in the top@k list. If None, all items will be considered.

Mean Average Precision (MAP)#

class cornac.metrics.MAP[source]#

Mean Average Precision (MAP).

References

https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)#Mean_average_precision

Mean Reciprocal Rank (MRR)#

class cornac.metrics.MRR[source]#

Mean Reciprocal Rank.

References

https://en.wikipedia.org/wiki/Mean_reciprocal_rank

Normalized Cumulative Reciprocal Rank (NCRR)#

class cornac.metrics.NCRR(k=-1)[source]#

Normalized Cumulative Reciprocal Rank.

Parameters:

k (int or list, optional, default: -1 (all)) – The number of items in the top@k list. If None, all items will be considered.

Normalized Discount Cumulative Gain (NDCG)#

class cornac.metrics.NDCG(k=-1)[source]#

Normalized Discount Cumulative Gain.

Parameters:

k (int or list, optional, default: -1 (all)) – The number of items in the top@k list. If None, all items will be considered.

References

https://en.wikipedia.org/wiki/Discounted_cumulative_gain

Precision#

class cornac.metrics.Precision(k=-1)[source]#

Precision@K.

Parameters:

k (int or list, optional, default: -1 (all)) – The number of items in the top@k list. If None, all items will be considered.

Recall#

class cornac.metrics.Recall(k=-1)[source]#

Recall@K.

Parameters:

k (int or list, optional, default: -1 (all)) – The number of items in the top@k list. If None, all items will be considered.