Abstract
Batch Machine Learning (BML) reaches its limits when dealing with very large amounts of streaming data. This is especially true for available memory, handling drift in data streams, and processing new, unknown data. Online Machine Learning (OML) is an alternative to BML that overcomes the limitations of BML. OML is able to process data in a sequential manner, which is especially useful for data streams. The river package is a Python OML-library, which provides a variety of online learning algorithms for classification, regression, clustering, anomaly detection, and more. The spotRiver package provides a framework for hyperparameter tuning of OML models. The spotRiverGUI is a graphical user interface for the spotRiver package. The spotRiverGUI releases the user from the burden of manually searching for the optimal hyperparameter setting. After the data is provided, users can compare different OML algorithms from the powerful river package in a convenient way and tune the selected algorithms very efficiently.
Introduction
In the modern data landscape, Batch Machine Learning (BML) remains the industry standard. However, BML faces significant challenges when processing massive, high-velocity data streams. It typically requires re-training on entire datasets, which is computationally expensive and memory-intensive. Furthermore, BML models often struggle with "concept drift," where the statistical properties of the target variable change over time, rendering static models obsolete.
Online Machine Learning (OML) offers a solution by processing data sequentially, one instance at a time. While OML algorithms like Hoeffding Trees are highly efficient, they are notoriously sensitive to hyperparameter settings. Manually navigating these high-dimensional search spaces is a daunting task for researchers. To address this, we introduce spotRiverGUI, an open-source graphical interface designed to automate and simplify hyperparameter tuning for OML.
The spotRiver Ecosystem
The spotRiverGUI serves as the front-end for a robust software ecosystem comprising three core components:
river: A comprehensive Python library for OML, offering algorithms for classification, regression, and more.spotRiver: A framework that integrates Sequential Parameter Optimization (SPOT) with OML. Unlike traditional grid or random searches, SPOT utilizes surrogate models (such as Kriging) to predict optimal hyperparameter combinations, drastically reducing the number of expensive model evaluations.spotRiverGUI: The user interface that allows for seamless task selection, dataset management, and real-time visualization of the optimization process.
Interface and Hyperparameter Management
The GUI provides a structured approach to model configuration. Users can select from various OML algorithms and define search spaces for hyperparameters. The system supports diverse parameter types, including integers, floats, and categorical factors.
As shown in Figure 3, the interface allows users to set default values, lower and upper bounds, and specific transformations (e.g., transform_power_2_int) to explore logarithmic spaces more effectively. This level of control is crucial for complex models like the Hoeffding Adaptive Tree, which possess numerous sensitive parameters.
Data Analysis and Visualization
spotRiverGUI includes built-in support for standard OML benchmarks such as Bananas, CreditCard, Elec2, and Phishing. It also allows users to upload custom CSV data. Beyond tuning, the tool facilitates data exploration.
By clicking "Show Data," users can generate visualizations (Figure 5) that reveal feature distributions and class separations. This preliminary analysis helps in understanding the data's complexity before initiating the tuning process.
Key Insights: Explainability and Green AI
A core philosophy of spotRiverGUI is moving beyond "black box" optimization. The tool provides surrogate plots and parallel coordinate plots to help users understand the hyperparameter landscape. This transparency allows researchers to identify which parameters significantly impact performance and which are negligible.
Furthermore, the tool embraces "Green AI" principles. Instead of optimizing solely for accuracy, users can perform multi-objective optimization by assigning weights to accuracy, computation time, and memory consumption. This ensures that the resulting models are not only high-performing but also resource-efficient.
Conclusion and Future Work
The spotRiverGUI significantly lowers the barrier to entry for sophisticated OML hyperparameter tuning. While the current version (v0.0.26) focuses on binary classification and basic preprocessing, future updates aim to include full support for regression tasks and enhanced extensibility for custom hyperparameter dictionaries. By automating the tuning process, spotRiverGUI enables researchers to focus on model selection and data analysis rather than manual parameter adjustment.
Summary updated