Executing Machine Learning Codes on Docker Container

Devesh Pratap Singh
2 min readMay 26, 2021

--

Now a days Containerization Technology is very rapidly growing day by day. Docker is the most popular Container Tools used very extensively by the industries. Today we are going to execute ML on the Docker container . In this tutorial my base OS will be RHEL8. Here we will gonna predict the Salary of employees on the basis of their years of Experience.

We are pulling centos image from docker hub .

Pulling centos image from Docker HUB.

We have downloaded centos latest image.

We are launching a Centos OS .

Here we have been using the help of yum repository to install Python3.

We have installed the libraries Pandas and Sklrearn which will going to help us to create a ML model.

Docker cp command is used to copy the dataset from my Base OS redhat 8 to my container Centos.

ML model is created. And saved as salary.pk1.

Here our model is created and we can easily predict the salary of a person on the basis of their Experience.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response