
Course Introduction and Outline
Learn to set up a reusable workspace and recognize your model. Build and deploy your own models, explore data tools, and create a business.
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
Learn to set up a machine learning workspace and manage multiple python virtual environments with pipes, including listing, switching, and activating the active environment.
Master python dependency management and virtual environments with poetry, from installation and project creation to lock file generation and packaging workflows via pyproject.
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.
Learn to build machine learning models for salary prediction using an adult dataset, preprocess with encoding and get dummies, train a random forest, and visualize feature relationships with seaborn.
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.
Build machine learning models from scratch to predict Bible passages, distinguishing Old Testament from New Testament, by vectorizing text, creating features and labels, and evaluating with train-test splits.
Learn to save your trained model by dumping it and using pickle to store it in a format you can reuse for other stuff.
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 pass data from back end to templates with Flask and Jinja, render templates using render_template, and apply jinja syntax for variables and control structures.
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.
Receive data from the front end and process it on the back end with Python in a Flask setup. Apply machine learning models to backend data.
Learn to store data from the frontend to a database with Flask-SQLAlchemy, configure the app, define a model with id, first name, last name, initialize the DB, and commit records.
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
Explore Streamlit basics for data visualization, including plotting with pandas data, creating maps, using sidebars, caching, and adding icons and markdown for interactive, polished web apps.
Learn how to build and expose a simple Python API using the Hug framework, covering local packages, API endpoints, and CLI interfaces for a books example.
Build a simple streamlit CRUD blog app to create, view, update, and delete posts, search by title or author, and visualize metrics with word clouds and charts.
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.
Learn how to change a Streamlit app's page name and icon using set_page_config, including emoji or images and an optional dictionary-based page_config for layout and the initial sidebar behavior.
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.
Learn to turn a machine learning model into a simple Flask web app that classifies text with a random forest, enabling input submission to receive predictions.
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.
Learn how to embed machine learning into a Flask web app by building a front-end form, routing input to a Python backend, loading models, and returning predictions.
Explore various approaches to beautify the front end of ML Flask apps using bootstrap and practical design techniques to improve aesthetics and user experience.
Build a salary predictor ml app with an interactive web interface, showcasing data preview, feature selection, encoding, model comparison, and live predictions using logistic regression and more.
Set up a python virtual environment, install pandas, numpy, and streamlit, and load models to build an ml web app with exploratory data analysis and a sidebar interface.
Explore salary data through exploratory data analysis, loading and describing the dataset, selecting columns and rows, and creating summaries, pivots, and value counts to prepare for ML app development.
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.
this session shows how to add a prediction aspect to the salary predictor by loading pretrained models, enabling model selection (logistic regression, random forest, Naive Bayes), and displaying results.
Add metrics to the salary predictor app by building a user input class, storing data in a database, updating the model, and monitoring predictions.
Select by country to inspect salary data, build country-specific views with a country dropdown, display results with flags, and generate country plots for insights.
Explore building a cmc predictor app to forecast contraceptive type (long term, short term, or abstinence) using Python, with data exploration, visualization, and predictive analytics.
Set up a virtual environment and install streamlit, panels, and seaborn to build the cmc predictor app. Organize data, models, and visualizations for user input and prediction.
Learn to build ml web apps with python by implementing an interactive eda workflow: descriptive or predictive analysis, data preview and column selection, and seaborn visualizations.
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 sentiment analysis emoji app and explore end-to-end flow from text input to polarity and emoji visualization, using pandas data frames and basic plotting.
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
Create a password strength classifier web app with Streamlit, generating random passwords and masking input, then classify passwords as weak, average, or strong using logistic regression and vectors.
Explore a car evaluation dataset to classify car quality as acceptable or not, using a streamlit app with logistic regression and mlp options for building ml web apps with python.
Builds a face detection app with Python, showing a demo where you upload or drag images, adjust contrast and brightness, and detect faces, smiles, and the number of people.
Develop a face detection web app with Python, using Streamlit and OpenCV to preprocess images, apply enhancements, and detect and count faces in images.
Explore building an emoji lookup app with Streamlit, demonstrating emoji search, emoji to Unicode, Unicode to emoji conversions, and basic sentiment tagging like joy.
Demonstrate an interactive trend analysis app that compares programming language search terms over time, visualizes trends with plots, and allows download of comparative datasets.
Build a trend analysis web app in Python with Streamlit to compare programming language popularity over time using Google Trends data, with interactive plots and filters.
Learn to convert names into vectors, train a gender classification model, and save the model for packaging into a machine learning web app.
Convert a gender classifier into a Python package and use models like logistic regression to predict gender from names. Load different models, predict male or female, and check name gender.
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.
Load the gender classifier model from the package path, convert inputs to vectors, and predict gender. Map results to female or male for user-friendly outcomes.
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.
Build a gender classifier package that classifies names and predicts gender, using is_female and is_male checks, and deploy and test the model as a reusable Python package.
Learn to unit test a gender classifier package by creating tests for male and female predictions and running them to verify results.
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.
Publish your machine learning package using poetry or twine, create a test pipeline account, upload to piper, verify the release, and install it from piper with pip.
Explore how to build a spam detector package in python using poetry, loading and packaging ml models, and creating a comment classifier with train, test, and vectorization steps.
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.
Learn to validate api parameters by setting rules, such as minimum length and type checks, to prevent abuse and ensure only valid strength inputs are accepted.
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.
Build a simple API, CLI, and Python package from scratch using the Hug framework. Expose your code as a local package, API, or CLI with practical, book list examples.
Learn how to deploy a streamlit app to Heroku by creating a GitHub repository, setting up a virtual environment, crafting a Procfile and requirements, and pushing to go live.
Update an already deployed Streamlit app by editing the code, committing changes, and redeploying with git to see the live update.
Learn to deploy a streamlit app on aws ec2: create aws account, launch an instance with python, configure security groups and ports, ssh in, run streamlit, and set up domain.
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.
learn how to stop, update, and delete a streamlit app deployed on google cloud platform using app engine, including managing versions and instances to avoid charges.
Learn how to deploy a streamlit and OpenCV face-detection app on Heroku, including setup of profile, build packs, and deployment steps.
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.
Learn to deploy Streamlit apps with Streamlit Sharing by linking your GitHub project, selecting Python, inviting access, and deploying updates in real time.
Learn to push and deploy a Streamlit app on GitHub, connect with the main branch, and add the Streamlit sharing badge while updating the readme and tracking deployment logs.
Manage your deployed machine learning app on Streamlit Sharing by viewing and downloading logs, rebooting, and deleting apps from the owner's dashboard.
Learn to deploy a simple NLP Flask app using HashiCorp's Waypoint to build, deploy, and release with a user interface, templates, and containerized deployment.
Learn how to load test a FastAPI NLP app by simulating multiple users, measuring response time, and analyzing sentiment endpoints like polarity and subjectivity.
Learn how to save and version machine learning models using joblib or pickle and the mlm workflow, including metadata, sample data, and deployment options like fastapi, docker, and kubernetes.
Learn how to use mlflow to track model experiments, metrics, parameters, and artifacts, log and compare multiple pipelines, and visualize results in the mlflow UI for selection in production.
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 hepatitis mortality predictor web app in Streamlit, guiding learners through the data science lifecycle from data prep and model building to visualization, authentication, and deployment.
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.