load_model¶
-
getml.models.
load_model
(name)¶ Returns a handler for a model in the engine.
The model has to be held in memory and thus be present in the current project.
list_models()
can be used to list all of them. In order to load a model from a different project, you have to switch projects first. Seeset_project()
andmodels
for more details about the lifecycles of the models.- Parameters
name (str) – Name of a model in the current project.
- Raises
KeyError – If the model loaded from the engine is ill-formatted (should not be happen. Please report such a problem.)
IOError – If the response of the engine did not contain a valid model.
TypeError – If name is not of type str or its value does not correspond to the class name of a model in getml.models.
- Returns
Handler for the model called name.
- Return type
Union[
MultirelModel
,RelboostModel
]