<changebeforePath="$PROJECT_DIR$/../experiments/Results & Graphs.ipynb"beforeDir="false"afterPath="$PROJECT_DIR$/../experiments/Results & Graphs.ipynb"afterDir="false"/>
In this experiment we will compare the LSH algorithm of PSEUDo to DTW using an EEG dataset. The metrics we will be comparing these two algorithms with are **computing time**, **recall** and **precision**.
%% Cell type:markdown id: tags:
We first load the EEG data and convert it to a numpy array
%% Cell type:code id: tags:
``` python
importpandasaspd
importnumpyasnp
fromtimeimporttime
datafile='data/21.csv'
N=100
T=100
M=100000
data=np.random.uniform(size=(M,T,N))
#and convert it to numpy array:
data=np.array(data,dtype="float32")
```
%% Cell type:code id: tags:
``` python
fromsklearnimportpreprocessing
```
%% Cell type:markdown id: tags:
We sample a number of subwindows which will be used as query for the search algorithms