© Manuel Amunategui, Mehdi Roopaei 2018
Manuel Amunategui and Mehdi RoopaeiMonetizing Machine Learninghttps://doi.org/10.1007/978-1-4842-3873-8_14

14. A/B Testing on PythonAnywhere and MySQL

Manuel Amunategui1  and Mehdi Roopaei2
(1)
Portland, Oregon, USA
(2)
Platteville, Wisconsin, USA
 
This is an ambitious chapter, so we’ll limit the scope in order to distill the essence of this rich topic without going overboard. We’ll start by building a simple MySQL database and table to track whether a visitor liked or didn’t like the art work on the landing page. Because this is A/B Testing, we’re going to create two landing pages and switch them randomly when users visit the site (Figure 14-1).
Figure 14-1

The final web application for this chapter

Note

Download ...

Get Monetizing Machine Learning: Quickly Turn Python ML Ideas into Web Applications on the Serverless Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.