Module Contents#

class relevanceai.operations_new.dr.models.tsne.TSNEModel(n_components: int, alias: Union[str, None], **kwargs)#

Helper class that provides a standard way to create an ABC using inheritance.

fit(self, vectors: Union[List[List[float]], numpy.ndarray]) None#

It fits the model to the vectors.


vectors (Union[List[List[float]], np.ndarray]) – Union[List[List[float]], np.ndarray]

fit_transform(self, vectors: List[List[float]]) List[List[float]]#

It takes a list of vectors, fits the model to the vectors, and then transforms the vectors


vectors (List[List[float]]) – List[List[float]]

Return type

A list of lists of floats.