classmethod KMeansModel.load(path)

Loads the module's configurations and parameters from files in the specified directory at first. Then, it initializes the model with the stored configurations and loads the parameters. This method is typically used after calling save() on the model.


path (Union[str, PathLike]) -- The directory which contains the config.json and files to load.

Return type

TypeVar(M, bound= ConfigurableModule)


The loaded model.


You can load modules even after you changed their configuration class. The only requirement is that any new configuration options have a default value.