
Deploy a machine learning model on a local server using a Flask rest api and Docker. The course guides Linux setup, VirtualBox, and CI tools like Jenkins and GitLab.
This video will the setup of the virtual box and the necessary configuration needed to do.
Set up PuTTY in a virtual environment to access a remote Linux shell, verify network settings with ipconfig, connect via ssh on port 22, and install Docker on Windows.
Install docker to create lightweight, isolated containers that package an app's dependencies into images and run them on the host OS, validating with a hello-world container.
Explain updated installation steps for Ubuntu 18.04 and 22.04, GitLab and Jenkins, and common errors, and direct you to section five on CI/CD pipeline and Jenkins configuration.
Install java 8/openjdk 8 prerequisites and Jenkins on Ubuntu 18.04, update apt, retrieve the initial admin password from the Jenkins log, and configure pipeline plugins.
Learn to install GitLab with Docker by pulling the community edition image from a Docker registry, then run a container exposing ports 80, 443, and 22 on your system IP.
Learn to set up a GitLab container, handle the password prompt, and create an admin user to access the GitLab dashboard via the provided IP address and port.
Explore flask, a lightweight micro framework for building websites and restful APIs, with easy setup, rich documentation, and a WSGI connector to client apps.
Explore sentiment analysis with nlp: classify tweets as negative, neutral, or positive using a python notebook, building and evaluating a model to improve accuracy.
Develop a Flask based API in Python to deploy an MLP model and serve sentiment estimates, using regex text cleaning, punctuation counting, and a logistic regression classifier.
Clean and prepare text data for sentiment analysis by importing libraries, encoding labels, applying regex-based pattern removal, and organizing a dataset for model training and evaluation.
Learn how to use regex to remove usernames from text by applying a remove pattern function to input text and a regex pattern, and observe the resulting cleaned data.
Learn how to preprocess text for NLP by removing punctuation and special characters, applying tokenization and stemming, and computing body length and punctuation features to boost model performance.
Explore building a pipeline from a corpus, visualize word clouds, apply count and tf-idf vectorization, and compare models via cross-validation, including support vector classification, random forests, boosting, and logistic regression.
Learn hyperparameter tuning and model selection for nlp using tf-idf features, grid search cv, and logistic regression to improve accuracy, with plans to deploy via flask and docker.
Learn how to save and load a machine learning model with pickle, use a saved count vectorizer for NLP prediction, and deploy with Docker and Flask.
Explore how a Flask app uses templates and static files to render a sentiment analysis interface, with a home page, a form, and a /predict route showing sentiment results.
Build a sentiment analysis pipeline with preprocessing, label encoding, vectorization, and logistic regression, then deploy via a Flask app that computes body length and punctuation features and returns predictions.
Launch and test a Flask API by running Python app.py, expose it on localhost:4000, and validate sentiment predictions on sample tweets with a dockerized deployment workflow.
Explore how Docker provides a lightweight open platform to develop, ship, and run applications by packaging code and dependencies into images and containers using Docker Hub and Alpine images.
Master Docker brief CLI commands for building, running, and troubleshooting containers, including image handling, port mapping, container naming, stopping, removing, and error resolution.
Create a dockerfile to package a Flask API for the MLP model, using an Alpine base image, install dependencies, copy the app to /app, and expose port 4000.
Update your dockerfile to specify the base image, install g++ and python3, upgrade setuptools, install requirements, and copy the app. Expose port 402 and configure the python entrypoint.
Clone the NLP deployment repo, build a docker image with the required dependencies, and run a container exposing a Flask app on a network port for access.
Learn practical fixes for Jenkins and GitLab installation on Ubuntu 20.04, including Docker setup, memory tuning, compatible Docker images, and configuring JDK 11 or 17 and permissions for seamless deployment.
Push the lp sentiment analysis project to GitLab and configure a Jenkins freestyle pipeline to build Docker images, run containers, expose a Flask api, and deploy the end-to-end ml model.
Copy your local files to a remote environment using winSCP by logging in with hostname, port 22, and credentials, then drag and drop files to the remote directory.
Create a Jenkinsfile to define a pipeline with stages for cloning the repo, building and running a docker image, and executing tests, including permissions troubleshooting.
Configure a ci-cd pipeline by setting up a GitLab webhook in Jenkins, enable push and merge request triggers, and test the docker-based build pipeline end-to-end.
Celebrate completing the course and master the end-to-end NLP machine learning model building and deployment pipeline with hands-on tools.
Machine Learning Real value comes from actually deploying a machine learning solution into production and the necessary monitoring and optimization work that comes after it.
Most of the problems nowadays as I have made a machine-learning model but what next.
How it is available to the end-user, the answer is through API, but how it works?
How you can understand where the Docker stands and how to monitor the build we created.
This course has been designed to keep these areas under consideration. The combination of industry-standard build pipeline with some of the most common and important tools.
This course has been designed into Following sections:
1) Configure and a quick walkthrough of each of the tools and technologies we used in this course.
2) Building our NLP Machine Learning model and tune the hyperparameters.
3) Creating flask API and running the WebAPI in our Browser.
4) Creating the Docker file, build our image and running our ML Model in Docker container.
5) Configure GitLab and push your code in GitLab.
6) Configure Jenkins and write Jenkins's file and run end-to-end Integration.
This course is perfect for you to have a taste of industry-standard Data Science and deploying in the local server. Hope you enjoy the course as I enjoyed making it.