Creates an inspector for a model.
tfdf.inspector.make_inspector(
directory: str, file_prefix: Optional[str] = None
) -> 'AbstractInspector'
Used in the notebooks
If file_prefix
is not given, the prefix is auto-detected. Auto-detection
fails if multiple models models are stored in the directory.
Args |
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).
|
Returns |
Inspector for the given model.
|
Raises |
ValueError
|
The model type is unsupported or prefix autodetection failed.
|