MACHINE LEARNING ON DOCKER CONTAINER
What is Machine Learning?
Machine Learning is the science of getting computers to learn and act like humans do, and improve their learning over time in autonomous fashion, by feeding them data and information in the form of observations and real-world interactions.
In simple words, machine learning is the concept of making your machine learning so that it can predict the desired targeted values. To make this happen a machine is trained by creating models and adding experience to it with the help of the dataset.
What is Docker?
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.
Lets start with the task:
- Installing docker
Checking status of docker whether it is running or not
“systemctl status docker” command shows the status of docker
2. Pulling Docker Image
Pull the Docker container image of CentOS image from DockerHub and create a new container
“docker pull centos:latest” is used for pulling image
“docker run -it __name CONTAINERNAME centos:latest” for launching container.
3. Install the Python software on the top of docker container
python can be installed using “yum install python3” command
All required libraries can be installed from the following command:
pip3 install <name of library>
4. Clone Git repository
Clone the git repository which contains the dataset and the machine-learning code. ( git URL mentioned at the end of the article)
Running python code for prediction.
Python Code
OUTPUT
That’s all for this blog, hope you liked it.
Thanks for Visiting here…!!!
Links :
You can also follow me on my Linkedin profile by clicking on following link.