(config_name)
return hparams
Set hyperparameters.

  Args:
    config_name: Name of config module to use.

  Returns:
    A HParams object (magenta) with defaults.
Set hyperparameters.
Set hyperparameters .
def get_hparams(config_name):
  """Set hyperparameters.

  Args:
    config_name: Name of config module to use.

  Returns:
    A HParams object (magenta) with defaults.
  """
  hparams = contrib_training.HParams(
      # Optimization
      batch_size=16,
      learning_rate=1e-4,
      adam_beta=0.5,
      max_steps=6000 * 50000,
      samples_per_second=16000,
      num_samples=64000,
      # Preprocessing
      n_fft=1024,
      hop_length=256,
      mask=True,
      log_mag=True,
      use_cqt=False,
      re_im=False,
      dphase=True,
      mag_only=False,
      pad=True,
      mu_law_num=0,
      raw_audio=False,
      # Graph
      num_latent=64,  # dimension of z.
      cost_phase_mask=False,
      phase_loss_coeff=1.0,
      fw_loss_coeff=1.0,  # Frequency weighted cost
      fw_loss_cutoff=1000,
  )
  # Set values from a dictionary in the config
  config = utils.get_module("baseline.models.ae_configs.%s" % config_name)
  if hasattr(config, "config_hparams"):
    config_hparams = config.config_hparams
    hparams.update(config_hparams)
  return hparams
def get_hparams ( config_name ) : hparams = contrib_training . HParams ( # Optimization batch_size = 16 , learning_rate = 1e-4 , adam_beta = 0.5 , max_steps = 6000 * 50000 , samples_per_second = 16000 , num_samples = 64000 , # Preprocessing n_fft = 1024 , hop_length = 256 , mask = True , log_mag = True , use_cqt = False , re_im = False , dphase = True , mag_only = False , pad = True , mu_law_num = 0 , raw_audio = False , # Graph num_latent = 64 , # dimension of z. cost_phase_mask = False , phase_loss_coeff = 1.0 , fw_loss_coeff = 1.0 , # Frequency weighted cost fw_loss_cutoff = 1000 , ) # Set values from a dictionary in the config config = utils . get_module ( "baseline.models.ae_configs.%s" % config_name ) if hasattr ( config , "config_hparams" ) : config_hparams = config . config_hparams hparams . update ( config_hparams ) return hparams