KMeans.load

classmethod KMeans.load(path)

Loads the estimator and (if available) the fitted model. This method should only be expected to work to load an estimator that has previously been saved via save().

Parameters

path (Union[str, PathLike]) -- The directory from which to load the estimator.

Return type

TypeVar(E, bound= BaseEstimator)

Returns

The loaded estimator, either fitted or not.