528e9560ef5910852e9d9a362580c9e0cb92989b,hypergan/cli.py,CLI,validate,#CLI#,100

Before Change




    def validate(self):
        if(self.sampler == None):
            raise ValidationException("No sampler found by the name ""+self.sampler_name+""")

    def step(self):
        self.gan.step()

        if(self.steps % self.sample_every == 0):

After Change


        return sample_list

    def validate(self):
        return True

    def lazy_create(self):
        if(self.sampler == None):
            self.sampler = CLI.sampler_for(self.sampler_name)(self.gan)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 528e9560ef5910852e9d9a362580c9e0cb92989b
Time: 2017-08-26
Author: mikkel@255bits.com
File Name: hypergan/cli.py
Class Name: CLI
Method Name: validate


Project Name: HyperGAN/HyperGAN
Commit Name: 5d191cb062b75a48885acdbe29e4f7e3ff184d1f
Time: 2020-02-09
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_layer


Project Name: thenetcircle/dino
Commit Name: 7e7b094c8d6de4169772919772697bef935b773c
Time: 2017-06-27
Author: oscar.eriks@gmail.com
File Name: dino/validation/acl.py
Class Name: AclPatternValidator
Method Name: _test_a_clause