relevanceai.operations_new.dr.transform#

Module Contents#

class relevanceai.operations_new.dr.transform.DimReductionTransform(vector_fields: List[str], model: Union[str, relevanceai.operations_new.dr.models.base.DimReductionModelBase], n_components: int, alias: Optional[str] = None, model_kwargs: Optional[dict] = None, output_field: str = None, **kwargs)#

To write your own operation, you need to add: - name - transform

model :relevanceai.operations_new.dr.models.base.DimReductionModelBase#
fields :List[str]#
alias :str#
property name(self)#

abstractproperty for name

transform(self, documents: List[Dict[str, Any]]) List[Dict[str, Any]]#

abstractmethod for transform