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
Design Patterns in C#: A Hands-on Guide with Real-world Examples Rating: 0 out of 5 stars0 ratingsBuilding Web Applications with Flask 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 ratingsThe No-Code Startup: The complete guide to building apps without code Rating: 0 out of 5 stars0 ratingsMastering IPython 4.0 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 ratingsFlask By Example Rating: 0 out of 5 stars0 ratingsBuilding Microservices Applications on Microsoft Azure: Designing, Developing, Deploying, and Monitoring Rating: 0 out of 5 stars0 ratingsMastering Flask Rating: 0 out of 5 stars0 ratingsVisual Studio Code for Python Programmers Rating: 0 out of 5 stars0 ratingsBuilding REST APIs with Flask: Create Python Web Services with MySQL Rating: 0 out of 5 stars0 ratingsLearning Azure DocumentDB 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 ratingsThor's Microsoft Security Bible: A Collection of Practical Security Techniques Rating: 0 out of 5 stars0 ratingsFlask Blueprints 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 ratingsModular Programming with Python Rating: 0 out of 5 stars0 ratingsParallel Programming with Python Rating: 0 out of 5 stars0 ratingsPractical Svelte: Create Performant Applications with the Svelte Component Framework Rating: 0 out of 5 stars0 ratingsMastering Python Programming: A Comprehensive Guide: The IT Collection Rating: 5 out of 5 stars5/5Building Python Real-Time Applications with Storm Rating: 0 out of 5 stars0 ratingsClean Python: Elegant Coding in Python Rating: 0 out of 5 stars0 ratingsTest-Driven Python Development Rating: 5 out of 5 stars5/5Backbone.js Patterns and Best Practices Rating: 0 out of 5 stars0 ratingsKivy – Interactive Applications and Games in Python - Second Edition Rating: 0 out of 5 stars0 ratingsPython Unlocked Rating: 0 out of 5 stars0 ratingsPython Development The Ultimate Step-By-Step Guide Rating: 0 out of 5 stars0 ratingsBeginning Git and GitHub: A Comprehensive Guide to Version Control, Project Management, and Teamwork for the New Developer Rating: 0 out of 5 stars0 ratings
Intelligence (AI) & Semantics For You
Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Dark Aeon: Transhumanism and the War Against Humanity Rating: 5 out of 5 stars5/5Summary of Super-Intelligence From Nick Bostrom Rating: 5 out of 5 stars5/5Artificial 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/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5The Secrets of ChatGPT Prompt Engineering for Non-Developers Rating: 5 out of 5 stars5/5101 Midjourney Prompt Secrets Rating: 3 out of 5 stars3/5ChatGPT For Fiction Writing: AI for Authors Rating: 5 out of 5 stars5/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/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsChatGPT For Dummies Rating: 0 out of 5 stars0 ratingsImpromptu: Amplifying Our Humanity Through AI Rating: 5 out of 5 stars5/5AI for Educators: AI for Educators Rating: 5 out of 5 stars5/5The Age of AI: Artificial Intelligence and the Future of Humanity Rating: 0 out of 5 stars0 ratingsOur Final Invention: Artificial Intelligence and the End of the Human Era Rating: 4 out of 5 stars4/5ChatGPT Rating: 1 out of 5 stars1/5The Exponential Age: How Accelerating Technology is Transforming Business, Politics and Society Rating: 5 out of 5 stars5/5
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