Tamil
மொழிகள்
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



SerializableModelMixin.load

classmethod SerializableModelMixin.load(file_name)[source]

Loads a model from the file. If the loaded model is not an instance of the class whose method was called, then a warning is raised. Nevertheless, the loaded model may be a valid model.

Parameters

file_name (str) -- a file name or path to load a model from.

Return type

Any

Returns

A loaded model.

Raises

TypeError -- if a loaded model is not an instance of the expected class.