File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
tutorials/get-started-notebooks Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 540540 "metadata" : {},
541541 "source" : [
542542 " Deploy the latest version of the model. "
543- {
544- "cell_type" : " code" ,
545- "metadata" : {
546- "language" : " python"
543+ ]
547544 },
545+ {
546+ "cell_type" : " code" ,
547+ "metadata" : {
548+ "language" : " python"
549+ },
548550 "source" : [
549551 " # Create the scoring script for the deployment" ,
552+ " deploy_dir = \" ./deploy\" " ,
553+ " os.makedirs(deploy_dir, exist_ok=True)" ,
554+ " " ,
550555 " score_script = \"\"\" " ,
551556 " import json" ,
552557 " import numpy as np" ,
567572 " " ,
568573 " print('Scoring script created at:', os.path.join(deploy_dir, 'score.py'))"
569574 ]
570- }
571- ]
572- },
575+ },
573576 {
574577 "cell_type" : " code" ,
575578 "execution_count" : null ,
576- "metadata" : { {
577- "language" : " python"
578- },
579+ "metadata" : {
579580 "gather" : {
580581 "logged" : 1679004373833
581582 },
596597 " name=\" blue\" ," ,
597598 " endpoint_name=online_endpoint_name," ,
598599 " model=model," ,
599- " environment=\" azureml://registries/azureml/environments/sklearn-1.5/labels/latest\" ,\n " ,
600600 " code_configuration=CodeConfiguration(" ,
601601 " code=deploy_dir," ,
602602 " scoring_script='score.py'" ,
603603 " )," ,
604- " instance_type=\" Standard_DS3_v2\" ,\n " ,
604+ " instance_type=\" Standard_DS3_v2\" ," ,
605605 " instance_count=1," ,
606606 " )" ,
607607 " " ,
You can’t perform that action at this time.
0 commit comments