Reader small image

You're reading from  Mastering Predictive Analytics with Python

Product typeBook
Published inAug 2016
Reading LevelIntermediate
Publisher
ISBN-139781785882715
Edition1st Edition
Languages
Right arrow
Author (1)
Joseph Babcock
Joseph Babcock
author image
Joseph Babcock

Joseph Babcock has spent more than a decade working with big data and AI in the e-commerce, digital streaming, and quantitative finance domains. Through his career he has worked on recommender systems, petabyte scale cloud data pipelines, A/B testing, causal inference, and time series analysis. He completed his PhD studies at Johns Hopkins University, applying machine learning to the field of drug discovery and genomics.
Read more about Joseph Babcock

Right arrow

Summary


In this chapter, we described the three components of a basic prediction service: a client, the server, and the web application. We discussed how this design allows us to share the results of predictive modelling with other users or software systems, and scale our modeling horizontally and modularly to meet the demands of various use cases. Our code examples illustrate how to create a prediction service with generic model and data parsing functions that can be reused as we try different algorithms for a particular business use case. By utilizing background tasks through Celery worker threads and distributed training and scoring on Spark, we showed how to potentially scale this application to large datasets while providing intermediate feedback to the client on task status. We also showed how an on-demand prediction utility could be used to generate real-time scores for streams of data through a REST API.

Using this prediction service framework, in the next chapter we will extend this...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Mastering Predictive Analytics with Python
Published in: Aug 2016Publisher: ISBN-13: 9781785882715

Author (1)

author image
Joseph Babcock

Joseph Babcock has spent more than a decade working with big data and AI in the e-commerce, digital streaming, and quantitative finance domains. Through his career he has worked on recommender systems, petabyte scale cloud data pipelines, A/B testing, causal inference, and time series analysis. He completed his PhD studies at Johns Hopkins University, applying machine learning to the field of drug discovery and genomics.
Read more about Joseph Babcock