EEG Phrase Predictor
Project description
EEG Phrase Predictor
Setup
- Requirements: python==3.9
- Installing:
pip install eegpp
Configuration
YML_CONFIG_FILE (e.g. data_config_infer.yml) with the following contents
datasets:
time_step: 4000 #milliseconds
data_dir: "FULL_PATH_TO_THE_FOLDER_WITH_RAW_SIGNAL_FILES"
tmp_dir : "FULL_PATH_TO_THE_TMP_FOLDER"
out_dir: "FULL_PATH_TO_THE_OUTPUT_FOLDER"
seq_files: ["name_of_raw_file_1", "name_of_raw_file_2",...,"name_of_raw_file_n]
template_files: ["template_label_file_1", "template_label_file_2", ..., "template_label_file_n"]
out_seperator: "\t"
If there is no template for label file, leave it as : template_files: [] or remove the line Example:
datasets:
time_step: 4000 #milliseconds
data_dir: "/home/EEGData/EEG_test_files"
tmp_dir : "/home/EEGData/tmp"
out_dir: "/home/EEGData/EEG_test_files"
seq_files: ["raw_K3_EEG3_11h.txt", "raw_RS2_EEG1_23 hr.txt", "raw_S1_EEG1_23 hr.txt"]
template_files: ["K3_EEG3_11h.txt", "RS2_EEG1_23 hr.txt", "S1_EEG1_23 hr.txt"] # if no template, set to : [ ] or remove this line
out_seperator: "\t" for tab or "," for commas
or
datasets:
time_step: 4000 #milliseconds
data_dir: "/home/EEGData/EEG_test_files"
tmp_dir : "/home/EEGData/tmp"
out_dir: "/home/EEGData/EEG_test_files"
seq_files: ["raw_K3_EEG3_11h.txt", "raw_RS2_EEG1_23 hr.txt", "raw_S1_EEG1_23 hr.txt"]
template_files: [] # if no template, set to : [ ] or remove this line
out_seperator: "\t" for tab or "," for commas
Running
Command:
python -m eegpp -p PATH_TO_THE_YML_CONFIG_FILE -e -t 0.55 {-n for norule}
e.g.
python -m eegpp -p data_config_infer.yml -e -t 0.55
No rule:
python -m eegpp -p data_config_infer.yml -e -t 0 -n
Add option -l to enter silence mode (no screen output).
For visualization:
First run inference with option -s:
python -m eegpp -p data_config_infer.yml -e -t 0 -n -s
Then:
python -m eegpp -p data_config_infer.yml -v
To enter visualization mode for the first dataset in data_config_infer.yml. EpochID starts with 1
or add -i option to set epoch ids
python -m eegpp -p data_config_infer.yml -v -i EpochID1,EpochId2,...,EpochIDn
To plot the signal and prediction of the EpochID (Indexing from 1), separating by commas
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eegpp-2.1.2.tar.gz.
File metadata
- Download URL: eegpp-2.1.2.tar.gz
- Upload date:
- Size: 23.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2db2e60ebf959b470ff5b12b139159a106f3cedf249e7487e8695d3903245ec0
|
|
| MD5 |
8c7f2081fc3baaa0c83845ac778f096e
|
|
| BLAKE2b-256 |
fef0a7050f285dedf95d9a728518d0a4448c445c5d9c748196f6d142f7802a09
|
File details
Details for the file eegpp-2.1.2-py3-none-any.whl.
File metadata
- Download URL: eegpp-2.1.2-py3-none-any.whl
- Upload date:
- Size: 23.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9f9527b78929c2daf335ea1a2be109da2073b690c237473b5b2440db4a7b71a
|
|
| MD5 |
817bb4ff1e5a497d3310e2a21bf8fd15
|
|
| BLAKE2b-256 |
56d89f88d3d5b27d5edc3efaeb07c3f49570850da55761d8b2a78eb599ecb8a4
|