Training a ML model inside a container
Yash Indane
Tech Enthusiast | Integrating Technologies | 1x AWS Certified | 6x Microsoft Certified | Cloud Computing | DevOps
Task 01 ???????
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 docker container
?? In Container you create machine learning model
1.First let's get the docker image
2.Now let's run the container and get inside it
3.Now install python in this container
4.We have to download pandas library for loading our dataset and the scikit-learn library for training the model
5.Check the installation by pip3 list command
6.Now from docker host let's transfer the csv file
7.This is code for training
8. This is code for testing, ie we predict the value for 3.6 years of experience
9. Now let's run the prediction code
We get the value 59812.06 !
DevOps Engineer | 2x Redhat Certified | RHCE | RHCSCK | 1x AWS Certified | MLOPS
3 年Great ??Yash Indane
DevOps, Cloud & Performance Engineer| DevOps Engineer
3 年Great
Cloud Technical Solutions Engineer @ Google
3 年Great bro Yash Indane ????