Skip to content
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

Stoppage Criteria: max incorrect #351

Merged
merged 3 commits into from
Sep 27, 2024
Merged

Stoppage Criteria: max incorrect #351

merged 3 commits into from
Sep 27, 2024

Conversation

lawhead
Copy link
Collaborator

@lawhead lawhead commented Sep 26, 2024

Overview

Added stoppage criteria to copy phrase tasks to check for a given number of consecutive incorrect. This is set using a new parameter.

Ticket

https://www.pivotaltracker.com/story/show/188221684

Contributions

  • Function to test for consecutive_incorrect
  • Additional parameter
  • Stoppage criteria check

Test

  • ran unit tests
  • ran a sample copy phrase task with a low number of max_incorrect to confirm that it stops when this number is reached.

@lawhead lawhead requested a review from tab-cmd September 26, 2024 23:50
Copy link
Contributor

@tab-cmd tab-cmd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; thanks for the quick turnaround!

@@ -611,6 +611,14 @@
"recommended_values": "",
"type": "int"
},
"max_incorrect": {
"value": "3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's set the default to five since that is the current norm for the clinical team

@@ -94,7 +95,8 @@ class RSVPCopyPhraseTask(Task):
'font', 'fixation_color', 'trigger_type',
'filter_high', 'filter_low', 'filter_order', 'notch_filter_frequency', 'down_sampling_rate', 'prestim_length',
'is_txt_stim', 'lm_backspace_prob', 'backspace_always_shown',
'decision_threshold', 'max_inq_len', 'max_inq_per_series', 'max_minutes', 'max_selections', 'min_inq_len',
'decision_threshold', 'max_inq_len', 'max_inq_per_series', 'max_minutes', 'max_selections', 'max_incorrect',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a reminder to myself, we need to add this parameter to MatrixCopyPhrase in the orchestrator PR. I have since separated them.

@lawhead lawhead merged commit 8f38b36 into 2.0.0rc4 Sep 27, 2024
6 checks passed
@lawhead lawhead deleted the stoppage-max-incorrect branch September 27, 2024 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants