diff --git a/pipelines/azurepipeline/code/deploy/deploy.sh b/pipelines/azurepipeline/code/deploy/deploy.sh index b5252885..9c6daf5d 100644 --- a/pipelines/azurepipeline/code/deploy/deploy.sh +++ b/pipelines/azurepipeline/code/deploy/deploy.sh @@ -17,4 +17,4 @@ while getopts "m:n:i:d:s:p:u:r:w:t:b:" option; esac done az login --service-principal --username ${SERVICE_PRINCIPAL_ID} --password ${SERVICE_PRINCIPAL_PASSWORD} -t $TENANT_ID -az ml model deploy -n $MODEL_NAME -m ${MODEL}:1 --ic $INFERENCE_CONFIG --pi ${BASE_PATH}/model/myprofileresult.json --dc $DEPLOYMENTCONFIG -w $WORKSPACE -g $RESOURCE_GROUP --overwrite -v \ No newline at end of file +az ml model deploy -n $MODEL_NAME -m ${MODEL}:26 --ic $INFERENCE_CONFIG --pi ${BASE_PATH}/myprofileresult.json --dc $DEPLOYMENTCONFIG -w $WORKSPACE -g $RESOURCE_GROUP --overwrite -v \ No newline at end of file diff --git a/pipelines/azurepipeline/code/deploy/score.py b/pipelines/azurepipeline/code/deploy/score.py index 67223872..610085b7 100644 --- a/pipelines/azurepipeline/code/deploy/score.py +++ b/pipelines/azurepipeline/code/deploy/score.py @@ -41,7 +41,7 @@ def run(raw_data): inference_time = datetime.timedelta(seconds=current_time - prev_time) payload = { 'time': inference_time.total_seconds(), - 'prediction': 'burrito' if o < 0.5 else 'tacos', + 'prediction': 'burrito' if o > 0.5 else 'tacos', 'scores': str(o) } diff --git a/pipelines/azurepipeline/code/profile/profile.sh b/pipelines/azurepipeline/code/profile/profile.sh index 22e3efba..af8e3f71 100644 --- a/pipelines/azurepipeline/code/profile/profile.sh +++ b/pipelines/azurepipeline/code/profile/profile.sh @@ -16,5 +16,6 @@ while getopts "m:n:i:d:s:p:u:r:w:t:b:" option; esac done az login --service-principal --username ${SERVICE_PRINCIPAL_ID} --password ${SERVICE_PRINCIPAL_PASSWORD} -t $TENANT_ID -az ml model profile -n $PROFILE_NAME -m ${MODEL}:1 --ic $INFERENCE_CONFIG -d $DATA -t myprofileresult.json -w $WORKSPACE -g $RESOURCE_GROUP -mv myprofileresult.json ${BASE_PATH}/model/myprofileresult.json \ No newline at end of file +az ml model profile -n $PROFILE_NAME -m ${MODEL}:26 --ic $INFERENCE_CONFIG -d $DATA -t myprofileresult.json -w $WORKSPACE -g $RESOURCE_GROUP +mv myprofileresult.json ${BASE_PATH}/myprofileresult.json +echo ${BASE_PATH} \ No newline at end of file diff --git a/pipelines/azurepipeline/code/profile/score.py b/pipelines/azurepipeline/code/profile/score.py index 67223872..610085b7 100644 --- a/pipelines/azurepipeline/code/profile/score.py +++ b/pipelines/azurepipeline/code/profile/score.py @@ -41,7 +41,7 @@ def run(raw_data): inference_time = datetime.timedelta(seconds=current_time - prev_time) payload = { 'time': inference_time.total_seconds(), - 'prediction': 'burrito' if o < 0.5 else 'tacos', + 'prediction': 'burrito' if o > 0.5 else 'tacos', 'scores': str(o) }