Monetizing Machine Learning: Quickly Turn Python ML Ideas into Web Applications on the Serverless Cloud
By Manuel Amunategui and Mehdi Roopaei
()
About this ebook
Take your Python machine learning ideas and create serverless web applications accessible by anyone with an Internet connection. Some of the most popular serverless cloud providers are covered in this book—Amazon, Microsoft, Google, and PythonAnywhere.
You will work through a series of common Python data science problems in an increasing order of complexity. The practical projects presented in this book are simple, clear, and can be used as templates to jump-start many other types of projects. You will learn to create a web application around numerical or categorical predictions, understand the analysis of text, create powerful and interactive presentations, serve restricted access to data, and leverage web plugins to accept credit card payments and donations. You will get your projects into the hands of the world in no time.
Each chapter follows three steps: modeling the right way, designing and developing a local web application, and deploying onto a popular and reliable serverless cloud provider. You can easily jump to or skip particular topics in the book. You also will have access to Jupyter notebooks and code repositories for complete versions of the code covered in the book.
What You’ll Learn
- Extend your machine learning models using simple techniques to create compelling and interactive web dashboards
- Leverage the Flask web framework for rapid prototyping of your Python models and ideas
- Create dynamic content powered by regression coefficients, logistic regressions, gradient boosting machines, Bayesian classifications, and more
- Harness the power of TensorFlow by exporting saved models into web applications
- Create rich web dashboards to handle complex real-time user input with JavaScript and Ajax to yield interactive and tailored content
- Create dashboards with paywalls to offer subscription-based access
- Access API data such as Google Maps,OpenWeather, etc.
- Apply different approaches to make sense of text data and return customized intelligence
- Build an intuitive and useful recommendation site to add value to users and entice them to keep coming back
- Utilize the freemium offerings of Google Analytics and analyze the results
- Take your ideas all the way to your customer's plate using the top serverless cloud providers
Who This Book Is For
Those with some programming experience with Python, code editing, and access to an interpreter in working order. The book is geared toward entrepreneurs who want to get their ideas onto the web without breaking the bank, small companies without an IT staff, students wanting exposure and training, and for all data science professionals ready to take things to the next level.
Related to Monetizing Machine Learning
Related ebooks
Edge Computing with Python: End-to-end Edge Applications, Python Tools and Techniques, Edge Architectures, and AI Benefits (English Edition) Rating: 0 out of 5 stars0 ratingsDeploy Machine Learning Models to Production: With Flask, Streamlit, Docker, and Kubernetes on Google Cloud Platform Rating: 0 out of 5 stars0 ratingsPractical Full Stack Machine Learning: A Guide to Build Reliable, Reusable, and Production-Ready Full Stack ML Solutions Rating: 0 out of 5 stars0 ratingsGo Programming Cookbook: Over 75+ recipes to program microservices, networking, database and APIs using Golang Rating: 0 out of 5 stars0 ratingsBuilding Web Applications with Flask Rating: 0 out of 5 stars0 ratingsAdvanced Forecasting with Python: With State-of-the-Art-Models Including LSTMs, Facebook’s Prophet, and Amazon’s DeepAR Rating: 0 out of 5 stars0 ratingsMastering IPython 4.0 Rating: 0 out of 5 stars0 ratingsFlask By Example Rating: 0 out of 5 stars0 ratingsMastering Flask Rating: 0 out of 5 stars0 ratingsFlask Blueprints Rating: 0 out of 5 stars0 ratingsFoundations of Python Network Programming Rating: 4 out of 5 stars4/5Programming with 64-Bit ARM Assembly Language: Single Board Computer Development for Raspberry Pi and Mobile Devices Rating: 0 out of 5 stars0 ratingsClean Python: Elegant Coding in Python Rating: 0 out of 5 stars0 ratingsData Science Solutions with Python: Fast and Scalable Models Using Keras, PySpark MLlib, H2O, XGBoost, and Scikit-Learn Rating: 0 out of 5 stars0 ratingsAdvanced Python Development: Using Powerful Language Features in Real-World Applications Rating: 0 out of 5 stars0 ratingsNumerical Python: Scientific Computing and Data Science Applications with Numpy, SciPy and Matplotlib Rating: 0 out of 5 stars0 ratingsPython High Performance - Second Edition Rating: 0 out of 5 stars0 ratingsLearning Python Design Patterns - Second Edition Rating: 0 out of 5 stars0 ratingsBuilding Python Real-Time Applications with Storm Rating: 0 out of 5 stars0 ratingsThor's Microsoft Security Bible: A Collection of Practical Security Techniques Rating: 0 out of 5 stars0 ratingsBeginning Game Programming with Pygame Zero: Coding Interactive Games on Raspberry Pi Using Python Rating: 0 out of 5 stars0 ratingsPython Unlocked Rating: 0 out of 5 stars0 ratingsMachine Learning Systems: Designs that scale Rating: 0 out of 5 stars0 ratingsMastering PyCharm Rating: 5 out of 5 stars5/5Kivy Blueprints Rating: 0 out of 5 stars0 ratingsOptimizing Visual Studio Code for Python Development: Developing More Efficient and Effective Programs in Python Rating: 0 out of 5 stars0 ratingsBuilding Web Applications with Python and Neo4j Rating: 0 out of 5 stars0 ratingsPyTorch Recipes: A Problem-Solution Approach Rating: 0 out of 5 stars0 ratingsBuilding Microservices Applications on Microsoft Azure: Designing, Developing, Deploying, and Monitoring Rating: 0 out of 5 stars0 ratings
Intelligence (AI) & Semantics For You
Artificial Intelligence: A Guide for Thinking Humans Rating: 4 out of 5 stars4/52084: Artificial Intelligence and the Future of Humanity Rating: 4 out of 5 stars4/5Summary of Super-Intelligence From Nick Bostrom Rating: 5 out of 5 stars5/5ChatGPT For Dummies Rating: 0 out of 5 stars0 ratingsWhat Makes Us Human: An Artificial Intelligence Answers Life's Biggest Questions Rating: 5 out of 5 stars5/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Dancing with Qubits: How quantum computing works and how it can change the world Rating: 5 out of 5 stars5/5The Secrets of ChatGPT Prompt Engineering for Non-Developers Rating: 5 out of 5 stars5/5ChatGPT For Fiction Writing: AI for Authors Rating: 5 out of 5 stars5/5Our Final Invention: Artificial Intelligence and the End of the Human Era Rating: 4 out of 5 stars4/5101 Midjourney Prompt Secrets Rating: 3 out of 5 stars3/5The Algorithm of the Universe (A New Perspective to Cognitive AI) Rating: 5 out of 5 stars5/5Chat-GPT Income Ideas: Pioneering Monetization Concepts Utilizing Conversational AI for Profitable Ventures Rating: 4 out of 5 stars4/5The Business Case for AI: A Leader's Guide to AI Strategies, Best Practices & Real-World Applications Rating: 0 out of 5 stars0 ratingsMidjourney Mastery - The Ultimate Handbook of Prompts Rating: 5 out of 5 stars5/5ChatGPT: The Future of Intelligent Conversation Rating: 4 out of 5 stars4/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsCreating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Enterprise AI For Dummies Rating: 3 out of 5 stars3/5The Insane ChatGPT Millionaire Guide Rating: 0 out of 5 stars0 ratings
Related categories
Reviews for Monetizing Machine Learning
0 ratings0 reviews
Book preview
Monetizing Machine Learning - Manuel Amunategui
© Manuel Amunategui, Mehdi Roopaei 2018
Manuel Amunategui and Mehdi RoopaeiMonetizing Machine Learninghttps://doi.org/10.1007/978-1-4842-3873-8_1
1. Introduction to Serverless Technologies
Manuel Amunategui¹ and Mehdi Roopaei²
(1)
Portland, Oregon, USA
(2)
Platteville, Wisconsin, USA
We’re going to create a very simple Flask web application (Figure 1-1) that we will reuse in the next four sections when we explore cloud-based services from Amazon AWS, Google Cloud, Microsoft Azure, and Python Anywhere.
../images/468330_1_En_1_Chapter/468330_1_En_1_Fig1_HTML.jpgFigure 1-1
Flask
It is a good idea to start with a local version of your website working on your local machine before venturing out onto the cloud.
Note
Download the files for Chapter 1 by going to www.apress.com/9781484238721 and clicking the source code button. Open Jupyter notebook "chapter1.ipynb" to follow along with this chapter’s content.
A Simple Local Flask Application
The code in this section is very simple, and you can either write it from scratch or use the files in folder "simple-local-flask-application."
Step 1: Basic Hello World!
Example
Let’s create a very simple Flask script straight from the official Flask help docs (Listing 1-1).
from flask import Flask
app = Flask(__name__)
@app.route(/
)
def hello():
return Hello World!
Listing 1-1
Simple Flask Script
That’s it! Even-though this doesn’t do much, it represents the minimum of what is needed to get a Flask website up and running; it is a real web application. Save the script as "main.py" anywhere on your local machine (and you can name it anything you want).
Step 2: Start a Virtual Environment
It’s always a good idea to segregate your development work using virtual environments from the rest of your machine (and this also comes in handy when building "requirements.txt files—see the section on
Creating a ‘requirements.txt’ File" in the introduction). Let’s start a virtual environment (Listing