Ejemplo n.º 1
0
 def get_config(self):
     config = super().get_config()
     config.update({
         "num_layers": hyperparameters.serialize(self.num_layers),
         "num_units": hyperparameters.serialize(self.num_units),
         "use_batchnorm": self.use_batchnorm,
         "dropout": hyperparameters.serialize(self.dropout),
     })
     return config
Ejemplo n.º 2
0
 def get_config(self):
     config = super().get_config()
     config.update(
         {
             "max_features": self.max_features,
             "pretraining": hyperparameters.serialize(self.pretraining),
             "embedding_dim": hyperparameters.serialize(self.embedding_dim),
             "dropout": hyperparameters.serialize(self.dropout),
         }
     )
     return config
Ejemplo n.º 3
0
 def get_config(self):
     config = super().get_config()
     config.update(
         {
             "return_sequences": self.return_sequences,
             "bidirectional": hyperparameters.serialize(self.bidirectional),
             "num_layers": hyperparameters.serialize(self.num_layers),
             "layer_type": hyperparameters.serialize(self.layer_type),
         }
     )
     return config
Ejemplo n.º 4
0
 def get_config(self):
     config = super().get_config()
     config.update(
         {
             "kernel_size": hyperparameters.serialize(self.kernel_size),
             "num_blocks": hyperparameters.serialize(self.num_blocks),
             "num_layers": hyperparameters.serialize(self.num_layers),
             "filters": hyperparameters.serialize(self.filters),
             "max_pooling": self.max_pooling,
             "separable": self.separable,
             "dropout": self.dropout,
         }
     )
     return config
Ejemplo n.º 5
0
 def get_config(self):
     config = super().get_config()
     config.update(
         {
             "translation_factor": hyperparameters.serialize(
                 self.translation_factor
             ),
             "horizontal_flip": self.horizontal_flip,
             "vertical_flip": self.vertical_flip,
             "rotation_factor": hyperparameters.serialize(self.rotation_factor),
             "zoom_factor": hyperparameters.serialize(self.zoom_factor),
             "contrast_factor": hyperparameters.serialize(self.contrast_factor),
         }
     )
     return config
Ejemplo n.º 6
0
 def get_config(self):
     config = super().get_config()
     config.update({
         "max_sequence_length":
         hyperparameters.serialize(self.max_sequence_length)
     })
     return config