relevanceai.operations_new.cluster.models.base
#
Module Contents#
- class relevanceai.operations_new.cluster.models.base.ClusterModelBase(*args, **kwargs)#
Helper class that provides a standard way to create an ABC using inheritance.
- static import_from_string(name)#
It takes a string, splits it on the period, and then imports the module
- Parameters
name – The name of the class to import.
- Return type
The module object.
- property name(self)#
It returns the name of the model class in lowercase
- Return type
The name of the model.
- abstract fit(self, *args, **kwargs) None #
- get_centroids_from_model(self)#
- calculate_centroids(self, labels: numpy.ndarray, vectors: numpy.ndarray) numpy.ndarray #
- abstract predict(self, *args, **kwargs) List[Dict[str, Any]] #
- abstract fit_predict(self, *args, **kwargs) List[int] #