relevanceai.operations.dr.ops#

Module Contents#

class relevanceai.operations.dr.ops.ReduceDimensionsOps(credentials: relevanceai.client.helpers.Credentials, n_components: int, model: Any, vector_fields: List[str], dr_field: str = '_dr_', verbose: bool = True, dataset_id: Optional[str] = None, alias: Optional[str] = None)#

Batch API client

fit(self, vector_fields: List[str], dataset_id: Optional[str] = None, alias: Optional[str] = None, filters: Optional[list] = None, show_progress_bar: bool = True, verbose: bool = True)#

Reduce Dimensions

Example

Parameters
  • dataset_id (Optional[str]) – The dataset to run dimensionality reduction on

  • vector_fields (Optional[List[str]]) – List of vector fields

  • alias (Optional[str]) – Alias to store dimensionality reduction model

  • show_progress_bar (bool) – If True, the progress bar can be shown

run(self, vector_fields: List[str], dataset_id: Optional[str] = None, alias: Optional[str] = None, filters: Optional[list] = None, show_progress_bar: bool = True, verbose: bool = True)#

Run dimensionality reduction