How alipsgh/tornado works
Project type and purpose
• This is a Python-based data stream mining framework (“Tornado”).
• It provides:
• Stream generators/readers (ARFF)
• Incremental classifiers (e.g., Naive Bayes, KNN, Hoeffding Tree, Perceptron)
• Concept-drift detectors (e.g., ADWIN, DDM, EDDM, FHDDM)
• Evaluators (prequential/classifier/detector)
• Plotting and archiving utilities
• Sample CLI scripts that tie everything together
File structure
• Top-level scripts:
• github_prequential_test.py
• github_prequential_multi_test.py
• github_generate_stream.py
• Core packages (each a subsystem):
• streams/ (generators, readers)
• classifier/ (online learners)
• drift_detection/ (detectors)
• evaluators/ (performance & drift evaluation)
• plotter/ & graphic/ (visualization)
• archiver/ (log and data archiving)
• filters/ (pre- and post-processing)
• data_structures/ & dictionary/ (internal representations)
• tasks/ (pre-built experiment workflows)
• Data directories:
• data_streams/ (sample ARFF data)
• tutorial_img/ & img/ (assets for docs)
Key insights from README
• Dependencies: numpy, scipy, matplotlib, pympler
• Three reference flows (single prequential test, multi-algorithm prequential, stream generator)
• Emphasis on incremental/online operation and drift adaptation
A. Stream Input Layer
• Generators (synthetic streams)
• Readers (ARFF files)
B. Pre-processing Layer (filters)
• Attribute handlers, project creation, score processors
C. Core Mining Engine
1. Classifier module
2. Drift Detector module
– These pair up in adaptive “learner+detector” units
D. Evaluation Layer
• Classifier Evaluator (accuracy, error rates)
• Detector Evaluator (detection delay, false alarms)
• Score Calculator
E. Archiving & Logging
• archiver: persist results, stream snapshots
F. Visualization & Reporting
• plotter (performance plots, optimal plots)
G. CLI/Orchestration Scripts
• Predefined tasks (in tasks/) wrap all the above into runnable experiments
Architectural patterns & design principles
• Modular plugin-style design: each classifier or detector implements a common interface and can be swapped.
• Pipeline pattern: data flows through a sequence of processing stages.
• Separation of concerns: reading, processing, learning, detection, evaluation, archiving, and plotting are distinct modules.
• Extensibility points:
• New stream generators in streams/generators/
• New classifiers in classifier/
• New detectors in drift_detection/
• New filters in filters/