??Machine Learning Inside Docker??

??Machine Learning Inside Docker??


Hello Connections !!!!

?? This is a article that will help you to know how we can use machine learning inside docker.

?? This is the first task of the MLOPS Summer Internship under the guidance of the world record holder Mr.Vimal Daga sir .

Task Description:

?? Pull the Docker container image of CentOS image from DockerHub and create a new container

?? Install the Python software on the top of docker container

?? In Container you need to copy/create machine learning model which you have created in jupyter notebook

?? Create a blog/article/video step by step you have done in completing this task. 

Step 1: Check whether docker is installed or not.

No alt text provided for this image

Docker is installed as the docker command is working

Step 2: Pull the Centos Image from Docker hub.

No alt text provided for this image

To pull any image from the docker hub which is the central repository of docker we need to use the command "docker pull image_name:version"

Step 3: Create a Container with the help of Centos image.

No alt text provided for this image

To create a container we need to use the command docker run -it --name container_name image_name

So as shown above the container is created and also it is started

Step 4: Download Python software inside Container.

No alt text provided for this image

Step 5 : Install the libraries that your Machine Learning model require.

" pip3 install numpy "

" pip3 install pandas "

" pip3 install scikit-learn "

No alt text provided for this image

Similarly install other libraries also using pip3 command

Step 6 : Copy Your model Inside Container.

The command is "docker cp Model_file_name conatiner_name :/Model_file_name"

You need to run this command in your base/host system

No alt text provided for this image

Step 7 : Create a Model file.

No alt text provided for this image

Step 8 : Run the Model.

No alt text provided for this image

As shown above the ML model has predicted the salary for an experience of 4.5 years to be 68317.03064522 (INR)

!!! Thank You for reading the article
Hope it was useful !!!




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

Tushar Joshi的更多文章

社区洞察

其他会员也浏览了