Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ dist/*
.pytest_cache/*
venv/
docs/_build
docs/sg_execution_times.rst
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ This will work on clean systems, but if you encounter issues you may need to run
<h2>Requirements</h2>

+ python>=3.6
+ pandas>=0.18.0
+ seaborn>=0.7.1
+ matplotlib>=1.5.1
+ scipy>=0.17.1
+ numpy>=1.10.4
+ future
+ pandas>=2.0.0
+ seaborn>=0.12.0
+ matplotlib>=3.5.0
+ scipy>=1.10.0
+ numpy>=2.0.0
+ joblib>=1.3.0
+ pytest (for development)

If installing from github (instead of pip), you must also install the requirements:
Expand Down
37 changes: 37 additions & 0 deletions benchmark_cluster.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import quail
import time
import numpy as np
import pandas as pd

def run_benchmark():
print("Generating data...")
# 20 subjects, 10 lists each, 16 items
n_subj = 20
n_lists = 10
list_len = 16

# Create random items
# Pres: ints
pres = [[[str(k) for k in range(list_len)] for j in range(n_lists)] for i in range(n_subj)]
# Rec: random shuffle of pres
rec = [[[str(k) for k in np.random.permutation(range(list_len))] for j in range(n_lists)] for i in range(n_subj)]

# Features: Scalar 'val'
features = [{'item': str(k), 'val': float(k)} for k in range(list_len)]
# Expand features to 3D
pres_feat = [[features for j in range(n_lists)] for i in range(n_subj)]

egg = quail.Egg(pres=pres, rec=rec, features=pres_feat)

print("Starting fingerprint analysis...")
start = time.time()
# Compute fingerprint with permutations (expensive part)
# 10 perms
res = egg.analyze('fingerprint', n_perms=10, permute=True, parallel=False)
end = time.time()

print(f"Analysis complete in {end - start:.2f} seconds.")
print(f"Result shape: {res.data.shape}")

if __name__ == '__main__':
run_benchmark()
Binary file modified docs/_build/doctrees/api.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/crack_egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/create_egg.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/decode_speech.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/index.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_accuracy.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_existing_axes.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_fingerprint.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_lagcrp.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_pfr.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_pnr.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_spc.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/plot_temporal.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/auto_examples/recmat2egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified docs/_build/doctrees/quail.Egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.analyze.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.crack_egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.decode_speech.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.load_egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.load_example_data.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.plot.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.recmat2egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/quail.stack_eggs.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial/advanced_plotting.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial/basic_analyze_and_plot.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial/egg.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial/fingerprint.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial/optimal presenter.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorial/speech_decoding.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: c7fe727da017c84d722f3c6469a0ea04
config: 06f8dbfe2189432395f7cdc548d7e758
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Binary file removed docs/_build/html/_downloads/auto_examples_python.zip
Binary file not shown.
54 changes: 0 additions & 54 deletions docs/_build/html/_downloads/crack_egg.ipynb

This file was deleted.

38 changes: 0 additions & 38 deletions docs/_build/html/_downloads/crack_egg.py

This file was deleted.

54 changes: 0 additions & 54 deletions docs/_build/html/_downloads/create_egg.ipynb

This file was deleted.

56 changes: 0 additions & 56 deletions docs/_build/html/_downloads/create_egg.py

This file was deleted.

54 changes: 0 additions & 54 deletions docs/_build/html/_downloads/create_multisubject_egg.ipynb

This file was deleted.

29 changes: 0 additions & 29 deletions docs/_build/html/_downloads/create_multisubject_egg.py

This file was deleted.

Loading