Intregation of docker and Machin Learning

Intregation of docker and Machin Learning

What is Machine Learning ?

Machine learning is the study of computer algorithms that improve automatically through experience and by the use of data. It is seen as a part of artificial intelligence.

What is Docker ?

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.

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 Jupyter notebook
  • Show the output.

1.     I write my code in window (jupyter) and extract a file salary.pk1 as trained model

githu link of code --> git https://github.com/yuvi1998/summer_intrnship.git

No alt text provided for this image

2.     Transfer file from base os to lunix os mine is redhut8 by using winscp tool

No alt text provided for this image
No alt text provided for this image

3.     Launch a docker container of cenose latest version by

"docker run -it --machin_learning centos

4.     Install python3 in container by " yum install python3 " docker centose provide preconfigure yum.Python3 also install pip3

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

5.     Now install required libraries for Machine Learning with pip3 command.

No alt text provided for this image

6.     Copy the model file salery.pk1 from host os to docker container

"docker cp salery.pk machin_learning:\ml"

No alt text provided for this image

7. Write the code in vi editor "vi slr.py"

No alt text provided for this image

8.     Run python file and get output

No alt text provided for this image


 

To view or add a comment, sign in

More articles by Yuvraj _

  • Javascript and its usecases in industry

    JavaScript is a scripting or programming language that allows you to implement complex features on web pages — every…

  • Confusion matrix and how it is useful in cyber security

    What is a Cybercrime? Cybercrime is criminal activity that either targets or uses a computer, a computer network or a…

    2 Comments
  • Jenkins an Automation tool

    Jenkins is an open source Continuous Integration server. Jenkins is used to build and test your software projects…

  • Task 6

    We perform following tasks in AWSCLI 1. webserver configured on EC2 instance.

  • Artificial Intelligence

    Difference between Artificial Intelligence (AI), Machine Learning (ML) and Deep Learning (DL) While people often use…

  • AWS CLI

    Hello connection as early I discussed about AWS in my previous article I am continuing my discussion one step ahead by…

  • Case Study on Gamming Industries working with AW

    Cloud Computing is a method of utilizing on-demand computer services via the internet. There is no need to maintain…

  • Big Data

    What is Big Data? Big Data refers to complex and large data sets that have to be processed and analyzed to uncover…

Explore content categories