Wednesday 16 January 2019

TensorFlow Keras Utilities



keras.utils.to_categorical(y, num_classes=None, dtype='float32')
keras.utils.normalize(x, axis=-1, order=2)

keras.utils.get_file(fname                      ,
                     origin                     ,
                     untar          = False     ,
                     md5_hash       = None      ,
                     file_hash      = None      ,
                     cache_subdir   = 'datasets',
                     hash_algorithm = 'auto'    ,
                     extract        = False     ,
                     archive_format = 'auto'    ,
                     cache_dir      = None      )

keras.utils.print_summary(model             ,
                          line_length = None,
                          positions   = None,
                          print_fn    = None)

keras.utils.plot_model(model                         ,
                       to_file          = 'model.png',
                       show_shapes      = False      ,
                       show_layer_names = True       ,
                       rankdir          = 'TB'       ,
                       expand_nested    = False      ,
                       dpi              = 96         )

Reference: keras.io

No comments:

Post a Comment