Deployment
Last updated
Was this helpful?
Last updated
Was this helpful?
We will learn how to deploy a machine learning model, for this we will explore
Deploy and host from local system using
Deploy on PaaS using and
Deploy on Serverless using and
Deploy on Virtual Machines using
Deploy on contained using
The simplest way to undestand deployment is like functions in any programming language. We create / develop a function with / without parameters and it executes when called for example . This is done to avoid repeating same line of code else where in program. Similarly, we will put our main Machine Learning code inside such a function, thereby giving capability of sending input data for prediction, classification or clustering task.
Here we will just try to create a basic image segmentation machine learning model but here we will already provide the correct path to our image to the ML code. If needed we can always create Flask app that provide ability to upload image file that needs to be segmented.
Create a folder on Desktop name mldeploy
Create Python Virtual Environment here named project
Inside virtual environment download necessary modules to run ML model, Flask app etc.
Create a app.py file inside project folder where our basic Flask app will reside ( )
Create another folder inside project named ML with 3 sub directories Data, Model, Output like for inputting data, creating model.py file and saving output respectively.