Integration of ML and devops

Integration of ML and devops

Tweak of mlops model of cnn by using transfer learning and integrate with the DevOps automation

Knowlege of tools Required

  • Dockerfile for creating cnn image
  • Jenkins
  • GitHub

Implementation -

1. Create container image that has Python3 and Keras or numpy installed using Dockerfile.

  • Build dockerfile - # docker build -t <name of image>:version <path of dockerfile>
No alt text provided for this image


2. When we launch this image, it should automatically starts Train the model in the container.

  • Launch the container from the mlops image
  • Run the cnn.py file that is uploaded on the github

3. Create a job chain of Job1, Job2, Job3, & Job4 using build pipeline plugin in Jenkins .

No alt text provided for this image

 Job1 : 

  • Pull the GitHub repository automatically when some developers push repository to GitHub.
No alt text provided for this image

Job2 :

  • By looking at the code or program file, Jenkins should automatically start the respective machine learning software installed interpreter install image container to deploy code and start training( eg. If code uses CNN, then Jenkins should start the container that has already installed all the software required for the CNN processing).
No alt text provided for this image

Job3 :

  • Run the cnn.py file
No alt text provided for this image
  • Train your model and predict accuracy or metrics.
No alt text provided for this image
No alt text provided for this image
  • if metrics accuracy is less than 90% , then Tweak the machine learning model architecture , Retrain the model and notify the developer that the best model is being created successfully.
No alt text provided for this image
No alt text provided for this image

Job4 :

  • If container where app is running, fails due to any reason then this job should automatically start the container again from where the last trained model left.
No alt text provided for this image



Akshay Mishra

SWE III @ Walmart (Sam’s Club) | Backend | System Design | DSA | Distributed Systems

4 年

Amazing ...

回复
Komal Kumawat

3x Certified || Salesforce Developer at Raptbot Technologies Pvt. Ltd

4 年

Good job Krishna Sharma

回复

要查看或添加评论,请登录

Krishna Sharma的更多文章

社区洞察

其他会员也浏览了