Machine Learning In Docker

Prathyusha
2 min readJun 10, 2021

--

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 the docker container

👉 In Container you need to copy/create a machine learning model which you have created in the Jupyter notebook

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

👉 Submit the link of blog/article or video

Check docker is installed or not.

Pull the centos image from the docker hub.

Create a container with help of a centos image.

Download python software inside docker “yum install python3”.

Install Libraries for ML Model

NumPy library — “pip install numpy”

Pandas Library — “pip install pandas”

Scikit Learn Library — “pip install scikit-learn”

Copy your model inside the container and check it's copied or not.

Machine Learning code to train the model.

Run the model “python3 Task1”

Load the dumped model for testing in a new file.

Run the model “python2 testing.py”

--

--

No responses yet