Publishing a pipeline to expose it as an endpoint
So far, you have defined a pipeline using the AzureML SDK. If you had to restart the kernel of your Jupyter notebook, you would lose the reference to the pipeline you defined, and you would have to rerun all the cells to recreate the pipeline object. The AzureML SDK allows you to publish a pipeline that effectively registers it as a versioned object within the workspace. Once a pipeline is published, it can be submitted without the Python code that constructed it.
In a new cell in your notebook, add the following code:
published_pipeline = pipeline.publish( "Loans training pipeline", description="A pipeline to train a LightGBM model")
This code publishes the pipeline and returns a PublishedPipeline
object, the versioned object registered within the workspace. The most interesting attribute of that object is the endpoint
, which returns the REST endpoint URL...