global_recall.py
def coverage(name, target):
    """
    Compute coverage for a specific system.
    
    This function is agnostic to whether you want coverage over entire Val or only
    the set of learnable types.
    """
    base = './Data/Systems/'
    path = base + name + '/Val/stats.json'
    system = load_json(path)
    gen = set(system['types'])
    recalled = gen & target
    return {"recalled": recalled,
            "score": len(recalled)/len(target),
            "not_in_val": gen - target}

    Compute coverage for a specific system.
    
    This function is agnostic to whether you want coverage over entire Val or only
    the set of learnable types.
    
Compute coverage for a specific system.
This function is agnostic to whether you want coverage over entire Val or only
the set of learnable types.
Compute coverage for a specific system . This function is agnostic to whether you want coverage over entire Val or only the set of learnable types .
def coverage(name, target):
    base = './Data/Systems/'
    path = base + name + '/Val/stats.json'
    system = load_json(path)
    gen = set(system['types'])
    recalled = gen & target
    return {"recalled": recalled,
            "score": len(recalled)/len(target),
            "not_in_val": gen - target}
def coverage ( name , target ) : base = './Data/Systems/' path = base + name + '/Val/stats.json' system = load_json ( path ) gen = set ( system [ 'types' ] ) recalled = gen & target return { "recalled" : recalled , "score" : len ( recalled ) / len ( target ) , "not_in_val" : gen - target }
Compute coverage for a specific system.
Compute coverage for a specific system .
"""
    Compute coverage for a specific system.
    
    This function is agnostic to whether you want coverage over entire Val or only
    the set of learnable types.
    """
name
target