view_model¶
- 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
- Parameters:
model (
Union
[str
,MltkModel
,Model
,TfliteModel
]) –Either
a path to a .tflite, .h5, .mltk.zip, .py file,
or
mltk.core.TfliteModel
instance
host (
str
) – Optional, host name of local HTTP serverport (
int
) – Optional, listening port of local HTTP servertest (
bool
) – Optional, if true load previously generated test modelbuild (
bool
) – Optional, if true, build the MLTK model rather than loading previously trained modeltflite (
bool
) – If true, view .tflite model otherwise view keras modeltimeout (
float
) – Amount of time to wait before terminaing HTTP server