19feb08bf8b7c9ab8b2cf2c4d5ec74541b84b103,autokeras/generator.py,RandomConvClassifierGenerator,_get_shape,#RandomConvClassifierGenerator#Any#,33

Before Change


    def _get_shape(self, dim_size):
        if len(self.input_shape) == 1:
            return dim_size,
        elif len(self.input_shape) == 2:
            return dim_size, dim_size
        elif len(self.input_shape) == 3:
            return dim_size, dim_size, dim_size
        raise ValueError("The input dimension is too high.")

    def generate(self):
        conv_num = randint(1, 10)
        dense_num = randint(1, 10)

After Change


        return pool_funcs[len(self.input_shape) - 2]

    def _get_shape(self, dim_size):
        temp_list = [(dim_size,), (dim_size, dim_size), (dim_size, dim_size, dim_size)]
        return temp_list[len(self.input_shape) - 2]

    def generate(self):
        conv_num = randint(1, 10)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: keras-team/autokeras
Commit Name: 19feb08bf8b7c9ab8b2cf2c4d5ec74541b84b103
Time: 2017-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/generator.py
Class Name: RandomConvClassifierGenerator
Method Name: _get_shape


Project Name: keras-team/autokeras
Commit Name: 19feb08bf8b7c9ab8b2cf2c4d5ec74541b84b103
Time: 2017-12-15
Author: jhfjhfj1@gmail.com
File Name: autokeras/generator.py
Class Name: RandomConvClassifierGenerator
Method Name: _get_pool_layer_func


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: AtrousConvolution1D
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 0f4fec30f00b29aa206e36fe875c83ff6149b618
Time: 2017-02-06
Author: yves@dbtune.org
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: batch_dot