Exemplo n.º 1
0
def make_refine_connected_component(gEpG,radius):
    smart_merge = make_merge_with_validation(radius,gEpG)
    synth = make_synthPoints(smart_merge)
    add_point = make_add_point(synth) 
    def refiner(cc):        
        part = Partition()
        E=list(all_edges(cc,gEpG))
        shuffle(E)
        for e in tqdm(E):
            t=Track(0,e)
            add_point(part,t)
        return part.points.values()
    return refiner
def benchmark_test(gEpG,radius):
    smart_merge = make_merge_with_validation(radius,gEpG)
    """
    sensible_merge = make_merge_interactive(
            smart_merge,
            lambda outocome: not outcome.is_correct(),
            oracle, gEpG)
    synth = make_synthPoints(sensible_merge)
    """
    synth = make_synthPoints(smart_merge)
    add_point = make_add_point(synth)
    my_closure = make_closure(add_point)
    cbf= make_closure_benchmark(my_closure)
    return cbf