5a69007e1ab2f4c0b4a549c0a2a8cd9701fd8929,examples/colorizer.py,,search,#Any#Any#Any#,137

Before Change



def search(config, inputs, args):
    gan = setup_gan(config, inputs, args)
    reconstruction = accuracy(tf.image.rgb_to_grayscale(gan.uniform_sample), tf.image.rgb_to_grayscale(x))
    for i in range(args.steps):
        gan.step()
        r,d = gan.session.run([reconstruction, diversity])
        sampler.sample("sample.png", False)
        print("R", r,"D", d)
        

After Change



def search(config, inputs, args):
    metrics = train(config, inputs, args)
    if "search_output" in args:
        search_output = args.search_output
    else:
        search_output = "2d-test-results.csv"

    config_filename = "colorizer-"+str(uuid.uuid4())+".json"
    hc.Selector().save(config_filename, config)
    with open(search_output, "a") as myfile:
        myfile.write(config_filename+","+",".join([str(x) for x in metric_sum])+"\n")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 5a69007e1ab2f4c0b4a549c0a2a8cd9701fd8929
Time: 2017-06-28
Author: mikkel@255bits.com
File Name: examples/colorizer.py
Class Name:
Method Name: search


Project Name: bearpaw/pytorch-pose
Commit Name: 0181fe9fc837b8cdcc612375f2f174c5652ef87a
Time: 2017-06-16
Author: platero.yang@gmail.com
File Name: example/mpii.py
Class Name:
Method Name: validate


Project Name: bearpaw/pytorch-pose
Commit Name: 447f94818fce0e45ee008ab5ef3f5c93e3416dc3
Time: 2017-05-25
Author: platero.yang@gmail.com
File Name: debug.py
Class Name:
Method Name: