Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
data.add_noise('y', dist=noise_type, size=dim_l, **noise_parameters)
Encoder, encoder_args = update_encoder_args(x_shape, model_type=encoder_type,
encoder_args=encoder_args)
Decoder, decoder_args = update_decoder_args(x_shape, model_type=decoder_type,
decoder_args=decoder_args)
build_mine_discriminator(models, x_shape, dim_l, Encoder, key='mine_discriminator',
**encoder_args)
build_noise_discriminator(models, dim_l, key='noise_discriminator')
build_encoder(models, x_shape, dim_l, Encoder, **encoder_args)
build_extra_networks(models, x_shape, dim_l, dim_l, Decoder, **decoder_args)
TRAIN_ROUTINES = dict(mine_discriminator=mine_discriminator_routine,
noise_discriminator=noise_discriminator_routine,
encoder=encoder_routine, nets=network_routine)
DEFAULT_CONFIG = dict(data=dict(batch_size=dict(train=64, test=640), duplicate=2))