Deploying Machine Learning Model inside a Docker container.

Deploying Machine Learning Model inside a Docker container.

*Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. By taking advantage of Docker’s methodologies for shipping, testing, and deploying code quickly, you can significantly reduce the delay between writing code and running it in production.

*The whole concept of machine learning is figuring out ways in which we can teach a computer to perform a task without needing to provide explicit instructions. Another way to think about it is that we're trying to "program" intuition in a computer. You and I can look at an email and easily discern whether or not it's spam, but how do you get a computer to do such a task? You could construct a huge convoluted logic infrastructure of "if.. then.." statements to sort out the spam emails, but it would be a pain to construct and probably wouldn't work too well. Instead, the machine learning approach is to equip the computer with skills to learn on its own and feed it a bunch of examples. Machine learning is exploding as a field right now as people are realizing a multitude of tasks that we can teach computers to perform by feeding it large datasets.



TASK DESCRIPTION

  1. Pull the Docker image of CentOS image from DockerHub and create a new container.
  2. Install the Python software on the top of docker container.
  3. Inside the docker container you need to copy/create machine learning model and train it.


STEP 1- START DOCKER SERVICES

systemctl start docker
No alt text provided for this image

STEP 2- PULL CentOs IMAGE FROM DOCKERHUB AND ENTER DOCKER CONTAINER

docker pull centos:latest
docker run -it --name os1 centos:latest
docker start os1
docker attach os1
No alt text provided for this image


STEP3- INSTALL PYTHON3 SOFTWARE INSIDE DOCKER CONTAINER

yum install python3
No alt text provided for this image


STEP 4- INSTALL SKLEARN AND JOBLIB PACKAGES

pip3 install joblib
pip3 install sklearn
No alt text provided for this image
No alt text provided for this image


STEP 5- INSTALL GIT PACKAGE.

yum install git
No alt text provided for this image


STEP6- CLONE GITHUB REPO.

git clone https://absarqureshi/salary_detection_using_machine_learning.git
No alt text provided for this image

STEP 7- RUN THE PYTHON FILE FOR SALARY PREDICTION

No alt text provided for this image

Thanks for reading!



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

Absar Qureshi的更多文章

  • Zenity: Red Hat Enterprise Linux 8.4

    Zenity: Red Hat Enterprise Linux 8.4

    What is Zenity? Zenity is an open source and a cross-platform application which displays GTK+ Dialog Boxes in…

    2 条评论
  • K-means Clustering & it’s Real use-case in the Security Domain.

    K-means Clustering & it’s Real use-case in the Security Domain.

    What is clustering Clustering is one of the most common exploratory data analysis technique used to get an intuition…

  • How Google Bot Uses Javascript?

    How Google Bot Uses Javascript?

    JavaScript is an important part of the web platform because it provides many features that turn the web into a powerful…

  • CYBER CRIME AND CONFUSION MATRIX.

    CYBER CRIME AND CONFUSION MATRIX.

    Confusion matrix is a fairly common term when it comes to machine learning. Today I would be trying to relate the…

    1 条评论
  • RUNNING GUI APP INSIDE DOCKER CONTAINER.

    RUNNING GUI APP INSIDE DOCKER CONTAINER.

    1-Check whether docker services are running or not. 2-Pull any image , in my case I pulled centos latest .

    4 条评论

社区洞察

其他会员也浏览了