예제 #1
0
 def condition(DNA):
     output = True
     if DNA:
         for num_layer in range(0, len(DNA) - 3):
             layer = DNA[num_layer]
             x_l = layer[3]
             y_l = layer[4]
             output = output and (x_l < x) and (y_l < y)
     if output:
         return max_filter(max_layer(DNA, 3), 40)
 def condition(DNA):
     return max_filter(max_layer(DNA,max_layers),max_filters)
예제 #3
0
 def condition_b(z):
     return max_filter_dense(
         max_filter(max_layer(z, max_layers), max_filters), max_dense)