Using the Python code
In this section, we are going to use the similarity join code we have developed to start joining iSAX indexes. The source code of join.py
is presented in three parts. The first part is the following:
#!/usr/bin/env python3 from isax import variables from isax import isax from isax import tools from isax.sax import normalize from isax.iSAXjoin import Join import sys import pandas as pd import time import argparse def buildISAX(file, windowSize): variables.overflow = 0 # Read Sequence as Pandas ts = pd.read_csv(file, names=['values'], compression='gzip', header = None) ts_numpy = ts.to_numpy() length = len(ts_numpy) ISAX = isax.iSAX() ISAX.length = length for i in range(length - windowSize + 1): &...