INNER CODE UNIT · Python

__init__

joeddav/devol · devol/genome_handler.py:27

    def __init__(self, max_conv_layers, max_dense_layers, max_filters,
                 max_dense_nodes, input_shape, n_classes,
                 batch_normalization=True, dropout=True, max_pooling=True,
                 optimizers=None, activations=None):
        """
        Creates a GenomeHandler according

        Args:
            max_conv_layers: The maximum number of convolutional layers
            max_dense_layers: The maximum number of dense (fully connected)
                    layers, including output layer
            max_filters: The maximum number of conv filters (feature maps) in a
                    convolutional layer
            max_dense_nodes: The maximum number of nodes in a dense layer
            input_shape: The shape of the input
            n_classes: The number of classes
            batch_normalization (bool): whether the GP should include batch norm
            dropout (bool): whether the GP should include dropout

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…