import torch


def get_coverage(slates, N):
    """
    Item coverage for give slates
    @input:
     - slates: list of slates
     - N: the total number of items in D
    """
    return len(torch.unique(slates)) * 1.0 / N