-
Notifications
You must be signed in to change notification settings - Fork 34
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
Dynamic Trial Window Selection #291
Conversation
Note: the older signal models cannot be used on a newer codebase... remove unusable load methods after refactor
static_offset = parameters.get("static_trigger_offset") | ||
|
||
raw_data = load_raw_data(Path(session_path, f'{RAW_DATA_FILENAME}.csv')) | ||
channels = raw_data.channels | ||
sample_rate = raw_data.sample_rate | ||
|
||
transform_params = parameters.instantiate(ERPTransformParams) |
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.
Good catch. I knew I was missing this somewhere.
@@ -618,7 +622,7 @@ | |||
"type": "int" | |||
}, | |||
"lang_model_type": { | |||
"value": "MIXTURE", | |||
"value": "UNIFORM", |
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.
Looks like we had the same idea here. :)
@@ -171,12 +171,14 @@ def predict_proba(self, data: np.array) -> np.array: | |||
posterior = np.exp(np.stack([log_post_0, log_post_1], axis=-1)) | |||
return posterior | |||
|
|||
def save(self, path: Path): | |||
def save(self, path: Path) -> None: |
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.
We may want to just delete these save and load methods to avoid confusion. The save module should be used now as it saves the entire class and uses a specific pickle version.
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.
These are required as part of the base class, so I will hold off for now!
scripts/python/replay_session.py
Outdated
nontargets_with_old_model, | ||
args.outdir) | ||
|
||
breakpoint() |
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.
TODO: remove this!
Overview
Using the newly added range type parameter, this PR adds the functionality to select different trial windows after stimuli presentions for modeling, online task use, and visualization.
Ticket
https://www.pivotaltracker.com/story/show/182151298
Contributions
Test
make test-all
Documentation
Changelog