class_docstr: Stores hyperparameters for initialization, batch norm and training.
class_docstr_tok: ["Stores","hyperparameters","for","initialization",",","batch","norm","and","training","."]
docstr: Get all hyperparameters as a string.
docstr_tok: ["Get","all","hyperparameters","as","a","string","."]
code: def __str__(self):
      """Get all hyperparameters as a string."""
      # include allowed keys only
      shorthand = dict(
          batch_size="bs",
          learning_rate="lr",
          optimize_mask_only="mask_only",
          corrupt_ratio="corrupt",
          crop_piece_len="len",
          use_softmax_loss="soft",
          num_instruments="num_i",
          num_pitches="n_pch",
          quantization_level="quant",
          use_residual="res",
          use_sep_conv="sconv",
          sep_conv_depth_multiplier="depth_mul",
          num_initial_regular_conv_layers="nreg_conv",
          separate_instruments="sep",
          rescale_loss="rescale",
          maskout_method="mm",
      )
      sorted_keys = sorted(shorthand.keys())
      line = ",".join(
          "%s=%s" % (shorthand[key], getattr(self, key))
          for key in sorted_keys
      )
      return line
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import os
  from magenta.models.coconet import lib_util
  import numpy
  import six
  import tensorflow.compat.v1
  import yaml
label_desc: Use image node_id 12 for calling the Hyperparameters obj's underlying member method code with example usage: obj.__str__() and returns: line