view_model(model, host=None, port=None, test=False, build=False, tflite=False, timeout=7.0)[source]

View an interactive graph of the given model in a webbrowser

  • model (Union[str, MltkModel, Model, TfliteModel]) –


  • host (Optional[str]) – Optional, host name of local HTTP server

  • port (Optional[int]) – Optional, listening port of local HTTP server

  • test (bool) – Optional, if true load previously generated test model

  • build (bool) – Optional, if true, build the MLTK model rather than loading previously trained model

  • tflite (bool) – If true, view .tflite model otherwise view keras model

  • timeout (float) – Amount of time to wait before terminaing HTTP server