Skip to content

Predict dimensionality reduction


Use a pretrained model to predict embeddings.

Usually employed after the train_dimensionality_reduction step.

Prediction Model

To use this step successfully you need to make sure the dataset you're predicting on is as similar as possible to the one the model was trained on. We check that the necessary data types and columns are present, but you should pay attention to how you handled these in the recipe the model was generated. Any changes might lead to a significant degradation in model performance.


The following are the step's expected inputs and outputs and their specific types.

Step signature
    ds: dataset,
    model: model_dimensionality_reduction[data]
) -> (predicted: list[number])

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.


Example call (in recipe editor)
predict_dimensionality_reduction(ds, model) -> (data.predicted)


ds: dataset

Contains the target column and the rest of the columns you wish to use in the model.

model: file:model_dimensionality_reduction[data]

File containing the model used to make the prediction.


predicted: column:list[number]

Column containing the model predictions.