Skip to content

issue at the pso code #1

Description

Initializing population...
conv

AttributeError Traceback (most recent call last)
in <cell line: 3>()
5 print("Initializing population...")
6 for i in range(population_size):
----> 7 particle.append(Particle(min_layer, max_layer, max_pool_layers, input_width, input_height, input_channels, probability_convolution,
8 probability_pooling, probability_fully_connected, max_conv_kernel_size, max_conv_output_channels,
9 max_fully_connected_neurons, output_dim))

1 frames
in init(self, min_layer, max_layer, max_pool_layers, input_width, input_height, input_channels, conv_prob, pool_prob, fc_prob, max_conv_kernel, max_out_ch, max_fc_neurons, output_dim)
31
32 # Build particle architecture
---> 33 self.initialization()
34
35 # Update initial velocity

in initialization(self)
82 print(self.layers[-1]["type"])
83
---> 84 self.layers, self.num_pool_layers = utils.add_pool(self.layers, self.fc_prob, self.num_pool_layers, self.max_pool_layers, self.max_out_ch, self.max_conv_kernel, self.max_fc_neurons, self.output_dim)
85
86 elif i>0.70*self.depth and layer_type >= fc_prob:

AttributeError: module 'utils' has no attribute 'add_pool'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions