Background: The most technical challenge for any new machine developer is to manually run the code, check the error and then increase the accuracy. By using Jenkins it reduces the manual part which is the most exciting part. It is not only running the code but taking the code from GitHub itself and setting up the environment using the docker container. Then it runs the Ml code, and if the accuracy of the model is less than 80% it will alert through an email — this reduces the developer workload. This alert system automatically provides feedback to developers so that they can easily detect where they are lagging and do the correction on time. This will not only reduce the error but also increase the accuracy of the model.
Goals: Increasing the accuracy of a Machine Learning model and alert when it fails to reach the desired accuracy.
"Jenkins is the best technology in my opinion. We used plugins like GitHub , SMTP, and many more which makes my work easy and provides me with such an automated environment that I can honestly say, “Jenkins, YOU ROCK!"
Solution & Results: First, I created a docker file in which I wrote all the dependencies required to run my ML model. Next, I wrote the CNN — convolutional neural network — code using Python programming language. I then created one GitHub repo where I stored all my codes. Then I installed Jenkins on Redhat and exposed the port to use Jenkins in my local browser. I installed all the plugins and created five jobs:
Pull the Github repo automatically when some developers push the repo to Github.
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
Train our model and predict accuracy or metrics.
If metrics accuracy is less than 80% \{Desired Accuracy}, then tweak the machine learning model architecture.
Retrain the model or notify that the best model is being created
The key capabilities we relied on were:
GitHub plugins: for downloading the repository from the given GitHub account into the workspace.
SMTP and Email Extension Plugin, which is used to alert the developer when the accuracy of the model is less than 80%.
Build trigger so that all my jobs run in the sequence the way I want.
Jenkins shell to run my most of the command.
Pos-build Actions and then Editable Email Notification so that the given message will sent via email.
For this project, the results were:
Machine learning model trained successfully
The deployment rate was pretty good, better than when it was done manually
Alert system worked properly, plugins made it easier to automate things