-
Notifications
You must be signed in to change notification settings - Fork 41
[DRAFT] Protocol redesign #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
vmcru
wants to merge
5
commits into
speechbrain:develop-eeg
Choose a base branch
from
vmcru:protocol_redesign
base: develop-eeg
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+608
−202
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f2c5c89
[DRAFT] inital setup for the redesign of the training protocol.
vmcru 389e7c8
fix and command sharingf for main experiment run.
vmcru 8e64513
cleanup
vmcru 130f567
cleanup of data files
vmcru a4a9431
removed exceptions floating file
vmcru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python run_experiments.py --hparams=hparams/MotorImagery/BNCI2014001/EEGNet.yaml --data_folder=./eeg_data --output_folder=./results/test_run --nsbj=9 --nsess=2 --seed=12346 --nruns=1 --train_mode=leave-one-session-out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
seed: 1234 | ||
__set_torchseed: !apply:torch.manual_seed [!ref <seed>] | ||
|
||
#OVERRIDES | ||
|
||
|
||
# DIRECTORIES | ||
data_folder: !PLACEHOLDER #'/path/to/dataset'. The dataset will be automatically downloaded in this folder | ||
cached_data_folder: !PLACEHOLDER #'path/to/pickled/dataset' | ||
|
@@ -39,6 +42,34 @@ C: 22 | |
test_with: 'last' # 'last' or 'best' | ||
test_key: "acc" # Possible opts: "loss", "f1", "auc", "acc" | ||
|
||
# DATASET | ||
|
||
# Get target subject | ||
#target_subject: !ref <dataset>.subject_list[!ref <target_subject_idx>]# | ||
|
||
# Create the subjects list | ||
#subjects: [!ref <target_subject>] | ||
|
||
# Create dataset using EpochedEEGDataset | ||
#dataset_class: !new:dataio.datasets.EpochedEEGDataset | ||
|
||
#json_path: !apply:os.path.join [!ref <cached_data_folder>, "index.json"] | ||
#save_path: !ref <data_folder> | ||
#dynamic_items: | ||
# - !name:dataio.preprocessing.to_tensor | ||
Comment on lines
+58
to
+59
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should include all preprocessing steps. |
||
#output_keys: ["label", "subject", "session", "epoch"] | ||
#preload: True | ||
|
||
#from_moabb_datset: !apply: !ref <dataset_class>.from_moabb | ||
# - !ref <dataset> | ||
# - !ref <json_path> | ||
# - !ref <subjects> | ||
# - !ref <save_path> | ||
# - !ref <dynamic_items> | ||
# - !ref <output_keys> | ||
# - !ref <preload> | ||
# - !ref <tmin> | ||
# - !ref <tmax> | ||
# METRICS | ||
f1: !name:sklearn.metrics.f1_score | ||
average: 'macro' | ||
|
@@ -52,7 +83,7 @@ metrics: | |
n_train_examples: 100 # it will be replaced in the train script | ||
# checkpoints to average | ||
avg_models: 10 # @orion_step1: --avg_models~"uniform(1, 15,discrete=True)" | ||
number_of_epochs: 862 # @orion_step1: --number_of_epochs~"uniform(250, 1000, discrete=True)" | ||
number_of_epochs: 800 # @orion_step1: --number_of_epochs~"uniform(250, 1000, discrete=True)" | ||
lr: 0.0001 # @orion_step1: --lr~"choices([0.01, 0.005, 0.001, 0.0005, 0.0001])" | ||
# Learning rate scheduling (cyclic learning rate is used here) | ||
max_lr: !ref <lr> # Upper bound of the cycle (max value of the lr) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more what I had in mind as it makes it easy to configure from the hparams file. See how it is a function which creates a dynamic item with the desired parameters?
DONT commit the suggestion directly, as it is just to illustrate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will allow us to do something like this in the yaml file: