Home
%3CLINGO-SUB%20id%3D%22lingo-sub-742150%22%20slang%3D%22en-US%22%3EMachine%20Learning%20DevOps%20(MLOps)%20with%20Azure%20ML%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-742150%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%2Fblob%2Fmaster%2Fdocs%2Fimages%2Fml-lifecycle.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%2Fraw%2Fmaster%2Fdocs%2Fimages%2Fml-lifecycle.png%22%20border%3D%220%22%20alt%3D%22ML%20lifecycle%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20Azure%20CAT%20ML%20team%20have%20built%20the%20following%20GitHub%20Repo%20which%20contains%20code%20and%20pipeline%20definition%20for%20a%20machine%20learning%20project%20demonstrating%20how%20to%20automate%20an%20end%20to%20end%20ML%2FAI%20workflow.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20build%20pipelines%20include%20DevOps%20tasks%20for%20data%20sanity%20test%2C%20unit%20test%2C%20model%20training%20on%20different%20compute%20targets%2C%20model%20version%20management%2C%20model%20evaluation%2Fmodel%20selection%2C%20model%20deployment%20as%20realtime%20web%20service%2C%20staged%20deployment%20to%20QA%2Fprod%20and%20integration%20testing.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1791481687%22%20id%3D%22toc-hId-1791481688%22%20id%3D%22toc-hId-1791481688%22%20id%3D%22toc-hId-1791481688%22%20id%3D%22toc-hId-1791481688%22%20id%3D%22toc-hId-1791481688%22%20id%3D%22toc-hId-1791481688%22%3E%3CA%20id%3D%22user-content-architecture-diagram%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%23architecture-diagram%22%20aria-hidden%3D%22true%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3EMLOps%20Reference%20Architecture%26nbsp%3B%3C%2FH2%3E%0A%3CP%3EThis%20reference%20architecture%20shows%20how%20to%20implement%20continuous%20integration%20(CI)%2C%20continuous%20delivery%20(CD)%2C%20and%20retraining%20pipeline%20for%20an%20AI%20application%20using%20Azure%20DevOps%20and%20Azure%20Machine%20Learning.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20solution%20example%20is%20built%20on%20the%20scikit-learn%20diabetes%20dataset%20but%20can%20be%20easily%20adapted%20for%20any%20AI%20scenario%20and%20other%20popular%20build%20systems%20such%20as%20Jenkins%20and%20Travis.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%2Fblob%2Fmaster%2Fdocs%2Fimages%2FArchitecture_DevOps_AI.png%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%2Fraw%2Fmaster%2Fdocs%2Fimages%2FArchitecture_DevOps_AI.png%22%20border%3D%220%22%20alt%3D%22Architecture%22%20%2F%3E%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--760675274%22%20id%3D%22toc-hId--760675273%22%20id%3D%22toc-hId--760675273%22%20id%3D%22toc-hId--760675273%22%20id%3D%22toc-hId--760675273%22%20id%3D%22toc-hId--760675273%22%20id%3D%22toc-hId--760675273%22%3E%3CA%20id%3D%22user-content-architecture-flow%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%23architecture-flow%22%20aria-hidden%3D%22true%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3EArchitecture%20Flow%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId-785621556%22%20id%3D%22toc-hId-785621557%22%20id%3D%22toc-hId-785621557%22%20id%3D%22toc-hId-785621557%22%20id%3D%22toc-hId-785621557%22%20id%3D%22toc-hId-785621557%22%20id%3D%22toc-hId-785621557%22%3E%3CA%20id%3D%22user-content-train-model%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%23train-model%22%20aria-hidden%3D%22true%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3ETrain%20Model%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3E%3CP%3EData%20Scientist%20writes%2Fupdates%20the%20code%20and%20push%20it%20to%20git%20repo.%20This%20triggers%20the%20Azure%20DevOps%20build%20pipeline%20(continuous%20integration).%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3EOnce%20the%20Azure%20DevOps%20build%20pipeline%20is%20triggered%2C%20it%20runs%20following%20types%20of%20tasks%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ERun%20for%20new%20code%3A%20Every%20time%20new%20code%20is%20committed%20to%20the%20repo%2C%20the%20build%20pipeline%20performs%20data%20sanity%20tests%20and%20unit%20tests%20on%20the%20new%20code.%3C%2FLI%3E%0A%3CLI%3EOne-time%20run%3A%20These%20tasks%20runs%20only%20for%20the%20first%20time%20the%20build%20pipeline%20runs.%20It%20will%20programatically%20create%20an%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23workspace%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20Service%20Workspace%3C%2FA%3E%2C%20provision%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fhow-to-set-up-training-targets%23amlcompute%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20Compute%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(used%20for%20model%20training%20compute)%2C%20and%20publish%20an%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-ml-pipelines%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20Pipeline%3C%2FA%3E.%20This%20published%20Azure%20ML%20pipeline%20is%20the%20model%20training%2Fretraining%20pipeline.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3ENote%3A%20The%20Publish%20Azure%20ML%20pipeline%20task%20currently%20runs%20for%20every%20code%20change%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3EThe%20Azure%20ML%20Retraining%20pipeline%20is%20triggered%20once%20the%20Azure%20DevOps%20build%20pipeline%20completes.%20All%20the%20tasks%20in%20this%20pipeline%20runs%20on%20Azure%20ML%20Compute%20created%20earlier.%20Following%20are%20the%20tasks%20in%20this%20pipeline%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CP%3E%3CSTRONG%3ETrain%20Model%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etask%20executes%20model%20training%20script%20on%20Azure%20ML%20Compute.%20It%20outputs%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23model%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Emodel%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20which%20is%20stored%20in%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23run%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Erun%20history%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3E%3CSTRONG%3EEvaluate%20Model%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etask%20evaluates%20the%20performance%20of%20newly%20trained%20model%20with%20the%20model%20in%20production.%20If%20the%20new%20model%20performs%20better%20than%20the%20production%20model%2C%20the%20following%20steps%20are%20executed.%20If%20not%2C%20they%20will%20be%20skipped.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3E%3CSTRONG%3ERegister%20Model%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etask%20takes%20the%20improved%20model%20and%20registers%20it%20with%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23model-registry%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20Model%20registry%3C%2FA%3E.%20This%20allows%20us%20to%20version%20control%20it.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH3%20id%3D%22toc-hId--1766535405%22%20id%3D%22toc-hId--1766535404%22%20id%3D%22toc-hId--1766535404%22%20id%3D%22toc-hId--1766535404%22%20id%3D%22toc-hId--1766535404%22%20id%3D%22toc-hId--1766535404%22%20id%3D%22toc-hId--1766535404%22%3E%3CA%20id%3D%22user-content-deploy-model%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%23deploy-model%22%20aria-hidden%3D%22true%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3EDeploying%20the%20MLOps%20Model%3C%2FH3%3E%0A%3CP%3EOnce%20you%20have%20registered%20your%20ML%20model%2C%20you%20can%20use%20Azure%20ML%20%2B%20Azure%20DevOps%20to%20deploy%20it.%3C%2FP%3E%0A%3CP%3EThe%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EPackage%20Model%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etask%20packages%20the%20new%20model%20along%20with%20the%20scoring%20file%20and%20its%20python%20dependencies%20into%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23image%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Edocker%20image%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20pushes%20it%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcontainer-registry%2Fcontainer-registry-intro%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Container%20Registry%3C%2FA%3E.%20This%20image%20is%20used%20to%20deploy%20the%20model%20as%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23web-service%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Eweb%20service%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EThe%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EDeploy%20Model%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Etask%20handles%20deploying%20your%20Azure%20ML%20model%20to%20the%20cloud%20(ACI%20or%20AKS).%20This%20pipeline%20deploys%20the%20model%20scoring%20image%20into%20Staging%2FQA%20and%20PROD%20environments.%3C%2FP%3E%0A%3CP%3EIn%20the%20Staging%2FQA%20environment%2C%20one%20task%20creates%20an%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcontainer-instances%2Fcontainer-instances-overview%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Container%20Instance%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20deploys%20the%20scoring%20image%20as%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fconcept-azure-machine-learning-architecture%23web-service%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Eweb%20service%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eon%20it.%3C%2FP%3E%0A%3CP%3EThe%20second%20task%20invokes%20the%20web%20service%20by%20calling%20its%20REST%20endpoint%20with%20dummy%20data.%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EThe%20deployment%20in%20production%20is%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2Fpipelines%2Frelease%2Fapprovals%2Fgates%3Fview%3Dazure-devops%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Egated%20release%3C%2FA%3E.%20This%20means%20that%20once%20the%20model%20web%20service%20deployment%20in%20the%20Staging%2FQA%20environment%20is%20successful%2C%20a%20notification%20is%20sent%20to%20approvers%20to%20manually%20review%20and%20approve%20the%20release.%20Once%20the%20release%20is%20approved%2C%20the%20model%20scoring%20web%20service%20is%20deployed%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Faks%2Fintro-kubernetes%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Kubernetes%20Service(AKS)%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20the%20deployment%20is%20tested.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH3%20id%3D%22toc-hId--23725070%22%20id%3D%22toc-hId--23725069%22%20id%3D%22toc-hId--23725069%22%20id%3D%22toc-hId--23725069%22%20id%3D%22toc-hId--23725069%22%20id%3D%22toc-hId--23725069%22%20id%3D%22toc-hId--23725069%22%3E%3CA%20id%3D%22user-content-repo-details%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%23repo-details%22%20aria-hidden%3D%22true%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3ERepo%20Details%3C%2FH3%3E%0A%3CP%3EYou%20can%20find%20the%20details%20of%20the%20code%20and%20scripts%20in%20the%20repository%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%2Fblob%2Fmaster%2Fdocs%2Fcode_description.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehere%3C%2FA%3E%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1719085265%22%20id%3D%22toc-hId-1719085266%22%20id%3D%22toc-hId-1719085266%22%20id%3D%22toc-hId-1719085266%22%20id%3D%22toc-hId-1719085266%22%20id%3D%22toc-hId-1719085266%22%20id%3D%22toc-hId-1719085266%22%3E%3CA%20id%3D%22user-content-references%22%20class%3D%22anchor%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMLOpsPython%23references%22%20aria-hidden%3D%22true%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3C%2FA%3EReferences%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Foverview-what-is-azure-ml%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20Machine%20Learning(Azure%20ML)%20Service%20Workspace%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Freference-azure-machine-learning-cli%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20CLI%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fsamples-notebooks%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20Samples%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fmachine-learning%2Fservice%2Fquickstart-create-workspace-with-python%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20ML%20Python%20SDK%20Quickstart%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevops%2F%3Fview%3Dvsts%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20DevOps%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20some%20background%20here%20is%20video%20overview%20of%20the%20team%20sharing%20the%20best%20practice%20guidance%20in%20more%20detail%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3C%2FP%3E%3CDIV%20class%3D%22video-embed-center%20video-embed%22%3E%3CIFRAME%20class%3D%22embedly-embed%22%20src%3D%22https%3A%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252Fnst3UAGpiBA%253Ffeature%253Doembed%26amp%3Burl%3Dhttp%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253Dnst3UAGpiBA%26amp%3Bimage%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252Fnst3UAGpiBA%252Fhqdefault.jpg%26amp%3Bkey%3Db0d40caa4f094c68be7c29880b16f56e%26amp%3Btype%3Dtext%252Fhtml%26amp%3Bschema%3Dyoutube%22%20width%3D%22400%22%20height%3D%22225%22%20scrolling%3D%22no%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%20title%3D%22Video%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-742150%22%20slang%3D%22en-US%22%3E%3CP%3EMLOps%20will%20help%20you%20to%20understand%20how%20to%20build%20the%20Continuous%20Integration%20and%20Continuous%20Delivery%20pipeline%20for%20a%20ML%2FAI%20project.%20We%20will%20be%20using%20the%20Azure%20DevOps%20Project%20for%20build%20and%20release%2Fdeployment%20pipelines%20along%20with%20Azure%20ML%20services%20for%20model%20retraining%20pipeline%2C%20model%20management%20and%20operationalization.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-742946%22%20slang%3D%22en-US%22%3ERe%3A%20Machine%20Learning%20DevOps%20(MLOps)%20with%20Azure%20ML%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-742946%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20anyone%20know%20if%20there%20is%20a%20resource%20out%20there%20that%20talks%20about%20or%20demonstrates%20how%20to%20use%20Azure%20ML%20to%20analyze%20consumer%20drone%20video%3F%26nbsp%3B%20I%20am%20specifically%20interested%20in%20setting%20something%20up%20so%20that%20I%20can%20use%20machine%20learning%20to%20do%20image%20analysis%20of%20microwave%20communication%20tower%20structure%20integrity.%26nbsp%3B%20We%20currently%20have%20a%20large%20microwave%20communication%20network%20and%20once%20a%20year%20have%20each%20tower%20manually%20inspected%20(a%20lot%20of%20these%20towers%20are%20over%20300%20ft.%20tall).%26nbsp%3B%20I%20am%20interested%20in%20utilizing%20a%20analytics%20pipeline%20of%20some%20sort%20to%20facilitate%20more%20frequent%20inspections%20of%20towers%20and%20equipment.%26nbsp%3BAny%20advice%2C%20feedback%2C%20or%20interest%20in%20the%20project%20is%20welcomed%20and%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747292%22%20slang%3D%22en-US%22%3ERe%3A%20Machine%20Learning%20DevOps%20(MLOps)%20with%20Azure%20ML%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747292%22%20slang%3D%22en-US%22%3E%3CP%3ENick%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20have%20a%20look%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fmedia-services%2Fmedia-analytics%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fmedia-services%2Fmedia-analytics%2F%20%3C%2FA%3E%26nbsp%3Bthis%20service%20pretty%20much%20offers%20you%20a%20lot%20of%20features%20out%20of%20the%20box.%3CBR%20%2F%3E%3CBR%20%2F%3ERe%20a%20real%20world%20example%20of%20a%20project%20see%20the%20Microsoft%20Machine%20Learning%20Channel%20where%20there%20is%20the%20following%20example%20(Video%20event%20detection%20with%20Deep%20Learning%20and%20a%20Python%20pipeline%20processing%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dz7NN0JeFNyY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dz7NN0JeFNyY%3C%2FA%3E)%20and%20the%20code%20is%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FvJenny%2Frace-events-recognition%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FvJenny%2Frace-events-recognition%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

 

ML lifecycle

The Azure CAT ML team have built the following GitHub Repo which contains code and pipeline definition for a machine learning project demonstrating how to automate an end to end ML/AI workflow.

 

https://github.com/microsoft/MLOpsPython

 

The build pipelines include DevOps tasks for data sanity test, unit test, model training on different compute targets, model version management, model evaluation/model selection, model deployment as realtime web service, staged deployment to QA/prod and integration testing.

MLOps Reference Architecture 

This reference architecture shows how to implement continuous integration (CI), continuous delivery (CD), and retraining pipeline for an AI application using Azure DevOps and Azure Machine Learning.

 

The solution example is built on the scikit-learn diabetes dataset but can be easily adapted for any AI scenario and other popular build systems such as Jenkins and Travis.

Architecture

Architecture Flow

Train Model

  1. Data Scientist writes/updates the code and push it to git repo. This triggers the Azure DevOps build pipeline (continuous integration).

  2. Once the Azure DevOps build pipeline is triggered, it runs following types of tasks:

    • Run for new code: Every time new code is committed to the repo, the build pipeline performs data sanity tests and unit tests on the new code.
    • One-time run: These tasks runs only for the first time the build pipeline runs. It will programatically create an Azure ML Service Workspace, provision Azure ML Compute (used for model training compute), and publish an Azure ML Pipeline. This published Azure ML pipeline is the model training/retraining pipeline.

    Note: The Publish Azure ML pipeline task currently runs for every code change

  3. The Azure ML Retraining pipeline is triggered once the Azure DevOps build pipeline completes. All the tasks in this pipeline runs on Azure ML Compute created earlier. Following are the tasks in this pipeline:

    • Train Model task executes model training script on Azure ML Compute. It outputs a model file which is stored in the run history.

    • Evaluate Model task evaluates the performance of newly trained model with the model in production. If the new model performs better than the production model, the following steps are executed. If not, they will be skipped.

    • Register Model task takes the improved model and registers it with the Azure ML Model registry. This allows us to version control it.

Deploying the MLOps Model

Once you have registered your ML model, you can use Azure ML + Azure DevOps to deploy it.

The Package Model task packages the new model along with the scoring file and its python dependencies into a docker image and pushes it to Azure Container Registry. This image is used to deploy the model as web service.

The Deploy Model task handles deploying your Azure ML model to the cloud (ACI or AKS). This pipeline deploys the model scoring image into Staging/QA and PROD environments.

In the Staging/QA environment, one task creates an Azure Container Instance and deploys the scoring image as a web service on it.

The second task invokes the web service by calling its REST endpoint with dummy data.

  1. The deployment in production is a gated release. This means that once the model web service deployment in the Staging/QA environment is successful, a notification is sent to approvers to manually review and approve the release. Once the release is approved, the model scoring web service is deployed to Azure Kubernetes Service(AKS) and the deployment is tested.

Repo Details

You can find the details of the code and scripts in the repository here

References

 

For some background here is video overview of the team sharing the best practice guidance in more detail

 

 

2 Comments
Regular Visitor

Does anyone know if there is a resource out there that talks about or demonstrates how to use Azure ML to analyze consumer drone video?  I am specifically interested in setting something up so that I can use machine learning to do image analysis of microwave communication tower structure integrity.  We currently have a large microwave communication network and once a year have each tower manually inspected (a lot of these towers are over 300 ft. tall).  I am interested in utilizing a analytics pipeline of some sort to facilitate more frequent inspections of towers and equipment. Any advice, feedback, or interest in the project is welcomed and appreciated.

Microsoft

Nick 

So have a look at https://azure.microsoft.com/en-us/services/media-services/media-analytics/  this service pretty much offers you a lot of features out of the box.

Re a real world example of a project see the Microsoft Machine Learning Channel where there is the following example (Video event detection with Deep Learning and a Python pipeline processing https://www.youtube.com/watch?v=z7NN0JeFNyY) and the code is at https://github.com/vJenny/race-events-recognition