
Course Introduction and Outline
Explore five categories of machine learning apps—detection and inspection, predictive analytics, pattern recognition, natural language processing apps, and cognitive systems—with examples like diabetes retinopathy, fraud detection, Netflix recommendations, and chatbots.
Ways To Productionize Your Machine Learning Models
Using Web Apps (Flask,Pyramid,Django,Express,etc)
Using Your ML Models as API
Using Streamlit
Using Your ML Models as a Package
Using Docker
Explore packaging a machine learning model with hug, then deploy it as a package, a rest api, and a cli to build three ml products at once.
Set up your workspace for cross-platform machine learning projects, choosing a suitable virtual environment (venv, virtualenv, or conda) to manage packages and ensure reproducibility.
Using Pipenv
How to Install Pipenv on Your System
pip install pipenv
Explore datasets, course materials, and code sources for building machine learning web apps, from the UCI repository and GitHub to data portals like datahub and Microsoft open data.
Build supervised models by defining features and a target, split data, train using random forest and other algorithms, and improve performance through cross‑validation and hyperparameter tuning for salary prediction.
Learn to interpret machine learning models by analyzing feature contributions to predictions, using top features, feature names, and class labels for clear explanations.
In this lecture we will be going on a fast pace to get an idea of how to build models for gender classification of names. We will be using these saved models in the next sections to build packages and other products.
Build and evaluate car quality models from a U.S. dataset using Python, applying encoding, scaling, and machine learning methods like logistic regression and MLP, and explain predictions with LIME.
Learn to install Flask from pip, create a basic Flask app, enable debug mode for development, and run a simple route locally to view output.
Learn how to render html in a Flask app by wiring the front end to the back end, organizing templates in a templates folder, and rendering a simple home page.
Learn how to receive data from the front end to the back end with Flask forms. Build first name and last name inputs and post data for processing.
Retrieve data from the database using Flask and Flask-SQLAlchemy. Display the users list in a template with a for loop showing first name and last name.
Learn to search for users in a database using query filters and render results with templates, building and displaying user profiles by first names in a Flask crash course.
Streamlit Crash Course
Streamlit - A Machine Learning Framework for building ML Tools
Installation
pip install streamlit
Learn how to add a login section to a blog app in Streamlit, enabling sign up, login, and posting restricted to authenticated users, with hashed passwords and basic database integration.
Explore how to create Streamlit layouts using two or three columns, packing and unpacking variables, and sidebars to organize a movie database app.
Explore how to build machine learning apps using Python, turning models into APIs and integrating tools to launch web-based ML applications.
Boot up a Flask app from scratch, setting up templates, static files, and models. Learn to render templates, initialize routes, and run and debug the development server.
Explore various approaches to beautify the front end of ML Flask apps using bootstrap and practical design techniques to improve aesthetics and user experience.
Explore data visualization in the salary predictor app by installing and using matplotlib and seaborn to create correlation plots and heatmaps for eda.
Develops the prediction aspect by mapping dictionary features and encoding user inputs—education, marital status, occupation, race, native country, gender, and hours per week—into a JSON vector for salary prediction.
Explore building a predictive web app that collects user inputs via sliders and radio buttons, converts them to numeric features, loads models with joblib, and outputs labeled predictions.
Build a Python NLP web app that summarizes text and checks entities with streamlit, spaCy, and BeautifulSoup, featuring interactive entity extraction and concise result rendering.
This utilizes the new feature which is found only version 0.52.1 and upwards.
To install you will need to use this
pip install streamlit==0.52.1
Learn to convert names into vectors, train a gender classification model, and save the model for packaging into a machine learning web app.
Build a Python package from scratch and later with Poetry, structure a package with __init__.py, core module, and tests, and implement a simple gender classifier class with initialization.
select a model type and load the corresponding model (base, logistic regression, or others) in the gender classifier package to run predictions and add an Indonesian classification option.
Learn to build a gender classifier package using setuptools and poetry, configuring setup.py and pyproject.toml, managing dependencies, metadata, and package data for distribution.
Build a Python package with poetry for a gender classifier, creating the project, managing dependencies in pyproject.toml, and preparing metadata and tests for publication.
Learn to build a FastAPI server, define routes, run with uvicorn, and explore the automatic docs and simple test examples.
In this lecture we will learn how to serve or use our ML models as API using FastAPI, a high performance framework.
So far we have seen how to productionize our ML models in several ways. Another great tool you can use to simplify the building of these ML products is to use Hug.
Hug is a framework that exposes your code in several ways specifically in 3 Main Ways
Local Package
API
CLI
In this section we will learn how to do so.
Deploy streamlit apps with docker and streamlit deploy for teams. Build a dockerfile, copy requirements, set an entrypoint, run the container, and expose port 8501 for local or team deployment.
Deploy a streamlit app on google cloud platform app engine by creating a gcp project, preparing a python-based app, and deploying with gcloud app deploy.
Install streamlit in a Google Colab workflow, set up a tunnel to expose a public url, then run the streamlit app in the background to share it with others.
Follow the data science lifecycle to build a hepatitis mortality prediction model from raw data, including cleaning, preprocessing, feature selection, evaluation, and interpretation in a simple web app.
Develop a flask-based hepatitis predictor web app that collects patient features, encodes inputs for a machine learning model, and presents a prediction and deployability score.
Course Description
Artificial Intelligence and Machine Learning is affecting every area of our lives and society. Google, Amazon, Netflix, Uber, Facebook and many more industries are using AI and ML models in their products.
The opportunities and advantages of Machine Learning is quite numerous.
What if you could also build your own machine learning models?
What if you can build something useful from the ML model you have spend time creating and make some profit whiles helping people and changing the world?
In this wonderful course, we will be exploring the various ways of converting your machine learning models into useful web applications and products.
We will move beyond just building machine learning models into build products from our ML Models.
Products that you can give to your customers and other users to benefit from. We will be adding simple UI to our AI and ML models.
With every section of the course you will develop new skills and improve your understanding of this challenging yet important sub-field of Data Science and Machine Learning.
This course is unscripted,fun and exciting but at the same time we dive deep into building Machine Learning web applications.
What You will Gain in this Course
In this course you will develop new skills as you learn:
how to setup your Data Science and ML work-space locally.
how to build machine learning models.
how to interpret ML models with Eli5.
how to serialize and save ML models.
how to build ML web apps using the models we have created.
how to build packages from your ML Models.
how to deploy your products.
etc
Join us as we explore the world of building Machine Learning apps and tools.