Giter VIP home page Giter VIP logo

kalikichandu / ml-model-retraining-devops-way Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.53 MB

Python 95.53% Dockerfile 4.47%
docker jenkins jenkins-pipeline dockerfile architecture blob azure azure-vm jenkinsfile machine-learning modeling model-retraining devops-pipeline model-evaluation model-deployment retraining-pipeline-flow docker-volumes model-versioning data-science end-to-end-machine-learning

ml-model-retraining-devops-way's Introduction

ML-Model-Retraining-DevOps-way

Architecture Diagram

Architecture

Code Files:

Only_CD/train.py:

• Fetching the data from Data Source (I have used CSV files).

• Pre-modelling steps (Data Cleaning, Feature Scaling, Feature Selection, Train Test Split e.t.c).

• Train ML Model using transformed data.

• Save the model as pickle files.

Only_CD/blob_push.py:

• Connect to Azure Blob Storage.

• Create a ML Model Container if it not exists.

• Push the newly created Model Pickle file to that container.

Dockerfile: Our Jenkins Model Retraining Pipeline will run inside this Docker Container.

• Using Base Image as continuumio/anaconda3:4.4.0

• Copy the requirements file.

• Install the dependent python modules for Retraining.

Jenkinsfile: Contains Code to run our Model Retraining Pipeline

• Pretty much the steps explained below in Model Retraining Pipeline Steps.

Whenever the data is available for model Retraining 'Model Retraining Pipeline' can be triggered from Jenkins UI.

We have created a Dockerfile to do the Model Retraining inside a Docker Container.

Prerequisites for Model Retraining Pipeline:

• Should be able to connect to Prod/QA Server from Jenkins server through SSH without Password.

  Use the below resource to set up Public-Private Key pair Authentication between Prod/QA server and Jenkins server.

  https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

• Create a Docker Volume in Prod/QA server and have the path ready to move the model file.

steps:

1.docker  volume create {volume_name}  	
//Command  to Create Docker Volume
    
2.docker volume inspect {volume_name}
//Command to see Docker Volume Path

Model Retraining Pipeline Steps:

  1. Clean the workspace.

  2. Pull the Model Retraining code to Jenkins Workspace from Github.

  3. Running below steps in Docker Container:

    (a) Install dependent Python packages

    (b) Initiate the Retraining code which saves the model as Pickle files

    (c) Initiate the code to push the Pickle file to Blob Storage

    (d) SSH the Pickle file to Docker Volume path in Prod/QA server

ml-model-retraining-devops-way's People

Contributors

kalikichandu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.