Deploying Machine Learning Model On Docker Container.
Step 1 : First checking whether Docker is running or not.
Step 2 : Pulling the Docker container image of CentOS image from DockerHub and creating a new container,
Now install the Python software on the top of docker container.
Step 3 : Install python library like numpy, pandas, scikit-learn for creating and running Machine Learning Model.
Step 4 : Now In Container you need to copy/create machine learning model , here i am having ML folder which contain all things so i am copying that ML folder to docker ml_model container.
Step 4 : create one python code for loading salary.pk1 model
Step 5 : Finally run model
Here i got 85326.96 salary for 6.3 years of experience .
Actual salary is 93940.
If we check accuracy of this model than we got 91%~ accuracy
85326.96/93940 * 100 = 90.8313391527