Creates an inspector for a model.

Used in the notebooks

Used in the tutorials

If file_prefix is not given, the prefix is auto-detected. Auto-detection fails if multiple models models are stored in the directory.

directory Path to the model.
file_prefix Internal prefix of the model files. If not specified (None), the prefix is automatically determined. If the directory contains multiple models, the prefix should be provided. If file_prefix="", the model is built without prefix (which is legal).

Inspector for the given model.

ValueError The model type is unsupported or prefix autodetection failed.