streamsight.metrics

Metrics

This module provides the functionality to evaluate the performance of the recommendation system.

Metric([timestamp_limit, cache])

Base class for all metrics.

PrecisionK([K, timestamp_limit, cache])

Computes the fraction of top-K recommendations that correspond to true interactions.

RecallK([K, timestamp_limit, cache])

Computes the fraction of true interactions that made it into the Top-K recommendations.