An implementation of Symbolic Aggregate approXimation (SAX) in python.
- Docker Community Edition
17.12.0-ceor higher - Docker Compose
1.18.0or higher - Yarn
1.3.2or higher (anpmreplacement)
- Start JupyterLab by running
docker-compose uporyarn start. - Copy and paste the URL with a token key shown in the shell output into your browser to access JupyterLab.
- All data are located in
workspace/datadirectory.- Time series data:
ts_a.txtandts_b.txt - Normalized time series data:
ts_a_normalized.txtandts_b_normalized.txt - Result:
result.txt
- Time series data:
- Source code
- Jupyter Notebook:
saxify.ipynb - Python:
saxify.py
- Jupyter Notebook:
- Open
saxify.ipynbby double-clicking this file in the left panel. - Go to Run > Run All Cells
- Open terminal from JupyterLab: File > New > Terminal.
- Change a directory to
/home/jovyan/work/workspaceby runningcd /home/jovyan/work/workspace. - Run
python3 saxify.py -a ./data/ts_a.txt -b ./data/ts_b.txt -x 7 -y 5 -z 6
5730329521 Parinthorn Saithong (Aof)
X = 7
Y = 5
Z = 6
n = 128
w = 32
SAX_A = EDDCEDCCCBCDBBDECDDDCCDDDDECBDEC
SAX_B = CDCCCDFFCCBDCBDCDBEBECFBCECCCCDC
Distance between SAX_A & SAX_B = 3.82MIT © Parinthorn Saithong