??Machine Learning Inside Docker??
Tushar Joshi
Functional Consultant | Business Analyst| Client Communication | Project Management| Python | AWS| Data Analyst
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.
Docker is installed as the docker command is working
Step 2: Pull the Centos Image from Docker hub.
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.
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.
Step 5 : Install the libraries that your Machine Learning model require.
" pip3 install numpy "
" pip3 install pandas "
" pip3 install scikit-learn "
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
Step 7 : Create a Model file.
Step 8 : Run the Model.
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 !!!