Skip to main content

EEG Phrase Predictor ver 2.3

Project description

EEG Phase Predictor ver 2.3

**Note: This is beta version, use for training with default dataset and inference only ** Support 128Hz and 256Hz input sampling **

Setup

  • Requirements: python >= 3.10
  • Installing:
  pip install eegpp3-beta

Train with default dataset

    python -m eegpp3 --mode "train" --model_type <mode_type> --lr <learning_rate> --batch_size <batch_size> --n_epochs <num_epochs> --n_splits <num_folds> --resume_checkpoint <resume_from_checkpoint>

ex: python -m eegpp3 --mode "train" --model_type "stftcnn1dnc" --n_epochs 20 --n_splits 10 --resume_checkpoint False

Inference

  1. Old version (Recommend)
    python -m eegpp3 -p <path_to_infer_config.yml>

ex: python -m eegpp3 -p "data_config_infer.yml"

An example of the configuration file:

datasets:
  time_step: 4000 #milliseconds
  data_dir: "/home/user/data"
  tmp_dir: "/home/user/tmp"
  out_dir: "/home/user/out"
  seq_files: ["raw_K3_EEG3_11h.txt", "raw_RS2_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"

Change directory (dir) with the correct path 2. New version

  python -m eegpp3 --mode "infer" --data_path <path_to_data_file> --infer_path <path_to_saving_file> --model_type <model_type>

ex: python -m eegpp3 --mode "infer" --data_path "./dump_eeg_1.pkl" --infer_path './inference_result.txt" --model_type "stftcnn1dnc"

Model type

  • stftcnn1dnc: Multi-channels STFT-CNN

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eegpp3_beta-2.3.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eegpp3_beta-2.3-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

Details for the file eegpp3_beta-2.3.tar.gz.

File metadata

  • Download URL: eegpp3_beta-2.3.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for eegpp3_beta-2.3.tar.gz
Algorithm Hash digest
SHA256 48b82752b010f8deed430493cc064f16cae8ed6af4cc570a349f8c6177956d29
MD5 1585123828cf444cc7ee2617eff0acdd
BLAKE2b-256 1825d43a15fd30e8bd91b79a502a4858920ad15fda0c4ed2dcd53b2326871aed

See more details on using hashes here.

File details

Details for the file eegpp3_beta-2.3-py3-none-any.whl.

File metadata

  • Download URL: eegpp3_beta-2.3-py3-none-any.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for eegpp3_beta-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f229aaab165bd462d0b4d311200a5c4acb3833c8654e82b4facf00d1522cf57a
MD5 82c4688073e466947ad6202ac6cf65da
BLAKE2b-256 9dd6d4b6a2b8c200fbed9ddd4b0a5a2fbee64a42c56245f560f2193cf009703d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page