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)
After Change
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")
if args.action == "train":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: nipy/dipy
Commit Name: 126297bf26dfae0d0a7e3a0a5843c6b8f36be3a1
Time: 2013-11-22
Author: garyfallidis@gmail.com
File Name: doc/examples/reconst_csa.py
Class Name:
Method Name:
Project Name: facebookresearch/Horizon
Commit Name: 45496de13b7932d8ec860da06f14d113000803be
Time: 2018-08-29
Author: jjg@fb.com
File Name: ml/rl/test/gridworld/test_gridworld_pytorch.py
Class Name: TestGridworld
Method Name: test_reward_boost