relevanceai.operations_new.scaling.models.sklearn
#
Module Contents#
- class relevanceai.operations_new.scaling.models.sklearn.SKLearnScaler(model: Union[str, sklearn.base.TransformerMixin], alias: Optional[str] = None, model_kwargs: Optional[dict] = None)#
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.
- Parameters
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
- Parameters
vectors (List[List[float]]) – List[List[float]]
- Return type
A list of lists of floats.