This document helps the user to run prediction / inference on the classical Logistic Regression (LogReg) model using the Razorthink aiOS SDK.


Load the saved model and predict on test data and save the results.


Create an inference pipeline, to predict on test data. Create an instance of LogisticRegression class with following parameters and evaluate the model by running execute():

  • operation - predict.
  • x_data - Test data on which the model is to be predicted.
  • attribute - Column name for the predicted value.
  • path - Specify the path where the trained model is saved.
lr_model_predict = (LogisticRegression()

@inputs.atomic.generic("output_path", required=True)
@inputs.atomic.generic("numpy_array", required=True)
class NumpyToCsv(Block):
    def run(self, numpy_array, output_path):
csv_writer = (NumpyToCsv()

predict_pipeline = Pipeline(targets=[csv_writer])

Executing the training pipeline in the Jupyter Notebooks.