Created
October 11, 2018 14:51
-
-
Save gauravkaila/5701495c4c27249ab13e618227aa2064 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create docker image | |
from azureml.core.image import Image, ContainerImage | |
image_config = ContainerImage.image_configuration(runtime= "python", | |
execution_script=config['docker']['path_scoring_script'], | |
conda_file=config['docker']['conda_env_file'], | |
tags = {'area': "diabetes", 'type': "regression"}, | |
description = "test") | |
image = Image.create(name = config['docker']['docker_image_name'], | |
# this is the model object | |
models = [model], | |
image_config = image_config, | |
workspace = ws) | |
image.wait_for_creation(show_output = True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment