draw_archs¶
- behavenet.models.ae_model_architecture_generator.draw_archs(batch_size, input_dim, n_ae_latents, n_archs=100, check_memory=True, mem_limit_gb=5.0)[source]¶
Generate multiple random autoencoder architectures with a fixed number of latents.
- Parameters:
batch_size (
int) – expected batch size, to ensure that model and intermediate values will fit on gpuinput_dim (
array-like) – dimensions of image with shape (n_channels, y_pix, x_pix)n_ae_latents (
int) – number of autoencoder latents - fixed for all generated architecturesn_archs (
int, optional) – number of architectures to generatecheck_memory (
bool, optional) –Trueto check that the memory footprint of each architecture is below a certain thresholdmem_limit_gb (
float, optional) – memory threshold in GB
- Returns:
list of dicts, each of which fully defines a random architecture
- Return type:
listofdict