File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,21 +67,11 @@ predictor X.jsonl -e no -f 100 -w frequency_hits --online_adaptation adwin
6767predictor X.jsonl -e no -f 100 -w frequency_hits --online_adaptation cusum
6868predictor X.jsonl -e no -f 100 -w frequency_hits --online_adaptation ph
6969
70- # With GUI dashboard visualization
70+ # With GUI dashboard visualization (works with any algorithm)
7171ftio-gui # Start dashboard first in separate terminal
72- predictor X.jsonl -e no -f 100 -w frequency_hits --gui
72+ predictor X.jsonl -e no -f 100 -w frequency_hits --online_adaptation adwin -- gui
7373```
7474
75- ### Key Flags
76-
77- | Flag | Description |
78- | ------| -------------|
79- | ` -w frequency_hits ` | Enable window adaptation based on frequency detection hits |
80- | ` --online_adaptation ` | Change point detection algorithm: ` adwin ` , ` cusum ` , or ` ph ` |
81- | ` --gui ` | Forward prediction data to the FTIO GUI dashboard |
82- | ` -e no ` | Disable plot generation |
83- | ` -f ` | Sampling frequency in Hz |
84-
8575For more details on change point detection algorithms, see [ Change Point Detection] ( change_point_detection.md ) .
8676
8777<p align =" right " ><a href =" #approach " >⬆</a ></p >
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ pip install -e .[gui]
103103ftio-gui
104104
105105# 2. Then run predictor with --gui flag to forward data to the dashboard
106- predictor X.jsonl -e no -f 100 -w frequency_hits --gui
106+ predictor X.jsonl -e no -f 100 -w frequency_hits --online_adaptation adwin -- gui
107107```
108108
109109The dashboard runs on ` http://localhost:8050 ` and displays:
Original file line number Diff line number Diff line change 55import sys
66
77from ftio .parse .helper import print_info
8+ from ftio .prediction .online_analysis import init_socket_logger
89from ftio .prediction .pools import predictor_with_pools
910from ftio .prediction .processes import predictor_with_processes
1011from ftio .prediction .processes_zmq import predictor_with_processes_zmq
1112from ftio .prediction .shared_resources import SharedResources
12- from ftio .prediction .online_analysis import init_socket_logger
1313
1414
1515def main (args : list [str ] = sys .argv ) -> None :
You can’t perform that action at this time.
0 commit comments