Hello everyone.
Welcome you all to my article based on Task-01 of Deploying Machine Learning Models using Docker containers.
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.
β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦β¦.
Steps:-
- π Check wheather docker is running or not.
2. π Pull the centos image from Docker hub
3. π Create a Container with the help of Centos image.
4. π Download Python and Git software
5. π Run git clone to clone the GitHub Repository where our Python code is available.
6. π Install all the libraries required for training our Machine Learning model.
7. π Create your LinearRegression Model .
I have created my LinearRegression model with name Model.py
8. π Run the Model.
After execution, we will see that a pickle file named βsalary.pklβ has been created.
In the βsalary_predictor.pyβ, we have loaded the pickle file and provided the User Input, and printed the result in an appropriate fashion.
9. π Run the βsalary_predictor.pyβ , to estimate the salary of the Employee.