Unable to deploy machine learning model - regression to predict auto car prices with the code from the MS docs documentation
When I follow step by step as linked from the documentation to build and deploy a machine learning model with the car prices regression predictor, I get errors at the stage of adding a Python script after the score model block.
I am using code and documentation from https://learn.microsoft.com/en-us/learn/modules/create-regression-model-azure-machine-learning-designer/
More precisely, I get an error when I have to input the custom run python script at https://learn.microsoft.com/en-us/learn/modules/create-regression-model-azure-machine-learning-designer/inference-pipeline
Has anyone had trouble executing these scripts from Microsoft? It is simply renaming a column.
See script below
import pandas as pd
def azureml_main(dataframe1 = None, dataframe2 = None):
scored_results = dataframe1[['Scored Labels']]
scored_results.rename(columns={'Scored Labels':'predicted_price'},
inplace=True)
return scored_results