Rapidly build practical online machine learning solutions using River and other top key frameworks
Apply machine learning to streaming data with the help of practical examples, and deal with challenges that surround streaming
Key Features
Work on streaming use cases that are not taught in most data science courses
Gain experience with state-of-the-art tools for streaming data
Mitigate various challenges while handling streaming data
Book Description
Streaming data is the new top technology to watch out for in the field of data science and machine learning. As business needs become more demanding, many use cases require real-time analysis as well as real-time machine learning. This book will help you to get up to speed with data analytics for streaming data and focus strongly on adapting machine learning and other analytics to the case of streaming data.
You will first learn about the architecture for streaming and real-time machine learning. Next, you will look at the state-of-the-art frameworks for streaming data like River. Later chapters will focus on various industrial use cases for streaming data like Online Anomaly Detection and others. As you progress, you will discover various challenges and learn how to mitigate them. In addition to this, you will learn best practices that will help you use streaming data to generate real-time insights.
By the end of this book, you will have gained the confidence you need to stream data in your machine learning models.
What you will learn
Understand the challenges and advantages of working with streaming data
Develop real-time insights from streaming data
Understand the implementation of streaming data with various use cases to boost your knowledge
Develop a PCA alternative that can work on real-time data
Explore best practices for handling streaming data that you absolutely need to remember
Develop an API for real-time machine learning inference
Who this book is for
This book is for data scientists and mac
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on guide to building real-time machine learning systems with Python, showing how to move beyond batch thinking toward continuously learning models. Best suited for data scientists and ML practitioners who already know standard scikit-learn workflows and now need to handle live, unbounded data streams.
【Book Arc】
- **Opening (~0%–15%)**: Frames the core problem — most analytics are still done in batch even when real-time value is possible — and contrasts batch versus streaming approaches, including the advantages of real-time data-generating processes.
- **Early (~15%–30%)**: Builds the architectural foundation: turning analytics into functions, sending HTTP requests, and standing up a minimal real-time inference API (e.g., via AWS API Gateway and Lambda), while flagging the software-engineering concerns a data scientist should not own alone.
- **Early–Middle (~30%–45%)**: Covers streaming descriptive statistics (rolling windows, mode, standard deviation), real-time visualization with Plotly Dash, and alerting/monitoring systems, including statistical process control for more advanced alerts.
- **Middle (~45%–55%)**: Introduces online machine learning as distinct from offline learning — models that update sequentially rather than in a single training pass — demonstrated with River on the iris dataset and learning-curve inspection.
- **Late (~55%–85%)**: Moves into industrial use cases such as online anomaly detection and a PCA alternative that works on real-time data, plus the challenges that arise when streaming and how to mitigate them.
- **Ending (~85%–100%)**: Consolidates best practices for generating real-time insights and building an API for real-time machine learning inference, aiming to leave the reader confident deploying streaming models.
【Key Takeaways】
- **Streaming is an architectural choice, not just a modeling one** (Early): the book treats real-time analytics as a pipeline — function, API, deployment — before touching model internals.
- **Batch and streaming coexist** (Early): many use cases still run in batch simply because those methods are more familiar; the book helps you judge when streaming adds genuine value.
- **Descriptive statistics need rethinking on streams** (Early–Middle): rolling windows, mode, and standard deviation are recomputed over sliding windows rather than fixed datasets.
- **Alerting evolves from static rules to statistical process control** (Middle): simple threshold alerts on single values give way to logic based on means, medians, and process stability.
- **Online learning updates models sequentially** (Middle): unlike offline train-deploy-retrain cycles, online models keep learning from each new observation, which suits drifting data.
- **River is the primary toolkit** (Middle): the book uses River for online models (e.g., logistic regression on iris) and inspects learning curves to judge stability.
- **Real-time visualization is achievable with lightweight tools** (Middle): Plotly Dash with interval callbacks provides near-real-time dashboards without heavy infrastructure.
- **Deployment and inference APIs close the loop** (Late): the book walks through exposing models for real-time inference, connecting analytics to production consumers.
【Reading Tips】
- Deep-read the early architecture chapters if you have never built an API; skim them if you already deploy services regularly.
- Treat the River code examples as the core — type them out rather than copying, since the sequential `learn_one` pattern is easy to misapply.
- Pay attention to the "challenges and mitigations" material in the later chapters; that is where the practical judgment lives.
- Use the GitHub repository alongside the text; the book explicitly points to notebooks and a real-time visualization script there.
- If you are strong on statistics, skim the descriptive-statistics refresher and focus on how windows change the computation.
【Coverage Limits】
The excerpts cover the book's framing, architecture, descriptive statistics, visualization, alerting, and the introduction to online learning with River, but do not detail the specific anomaly detection methods, the PCA alternative implementation, or the full best-practices chapter. Chapter titles and exact percentages beyond the markers shown are not verifiable from the excerpts.
Excerpt 1
Develop a PCA alternative that can work on real-time data Explore best practices for handling streaming data that you absolutely need to remember Develop an...
this book, you can download the code in the repository and execute it using your preferred Python editor. If you are not yet familiar with Python environment...
loper-guide/kinesis-examples- capturing-page-scrolling.html measure, as you'll never have enough time and money to measure every individual in the population...
d use it for predicting your input stream. You can probably track the performance metrics of your model, and when the performance starts to change, you can d...
ld of 0.95, but the model has detected no points above 0.95. In this case, the constant thresholder would split no observations at all into the anomaly class...
prediction can be more or less wrong. In practice, you will rarely be entirely right. In classification, you are either wrong or right, so this is different....
ns will need to be programmed controls of its own behavior. If we think of it as a computer game, then you understand that the actions that you as a player c...
considered a problem of drift in the literature, I find it important to also mention problems with the model as one of the problems behind drifting and decay...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Machine Learning for Streaming Data with Python (Joos Korstanje) (z-library.sk, 1lib.sk, z-lib.sk)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Machine Learning for Streaming Data with Python (Joos Korstanje) (z-library.sk, 1lib.sk, z-lib.sk)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment