MCPcopy Index your code

hub / github.com/facebookresearch/emg2qwerty / functions

Functions177 in github.com/facebookresearch/emg2qwerty

Method__post_init__
(self, _timestamps: Sequence[float] | None)
emg2qwerty/data.py:204
Method__post_init__
( self, window_length: int | None, stride: int | None, padding: tuple[int, int
emg2qwerty/data.py:455
Method__str__
(self)
emg2qwerty/decoder.py:212
Method__str__
(self)
emg2qwerty/decoder.py:354
Method__str__
(self)
emg2qwerty/charset.py:299
Method__str__
Human-readable string representation for display.
emg2qwerty/data.py:181
Method__str__
Human-readable string representation for display.
emg2qwerty/data.py:420
Method_error_rate
(errors: torch.Tensor)
emg2qwerty/metrics.py:52
Method_normalize_key
(key: KeyChar)
emg2qwerty/charset.py:252
Method_spurious_char
(c: UniChar)
emg2qwerty/charset.py:280
Methodallowed_chars
Sequence of allowed chars, order respected.
emg2qwerty/charset.py:148
Methodallowed_keys
Sequence of allowed keys, order respected.
emg2qwerty/charset.py:138
Methodallowed_unicodes
Sequence of allowed unicode values, order respected.
emg2qwerty/charset.py:143
Methodcollate
Collates a list of samples into a padded batch of inputs and targets. Each input sample in the list should be a tuple of (input, target) tenso
emg2qwerty/data.py:513
Methodcondition
(self)
emg2qwerty/data.py:159
Methodconfigure_optimizers
(self)
emg2qwerty/lightning.py:266
Functioncpus_per_task
Number of CPUs to request per task per node taking into account the number of GPUs and dataloading workers.
emg2qwerty/utils.py:37
Methoddecode
( self, emissions: np.ndarray, timestamps: np.ndarray, finish: bool = False,
emg2qwerty/decoder.py:459
Methoddecoding
Sequence of decoded labels in the path leading to this beam state, ignoring the blank label at the trie root.
emg2qwerty/decoder.py:302
Methoddepth
(self)
emg2qwerty/decoder.py:209
Methodduration_mins
The duration of the EMG session in minutes.
emg2qwerty/data.py:163
Methodfields
The names of the fields in the ``timeseries`` compound HDF5 Dataset.
emg2qwerty/data.py:133
Methodforward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:35
Methodforward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:92
Methodforward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:162
Methodforward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:199
Methodforward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:236
Methodforward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:279
Methodget_best_decodings
(self, k: int = 5)
emg2qwerty/decoder.py:455
Functionget_last_checkpoint
(checkpoint_dir: Path)
emg2qwerty/utils.py:30
Functioninstantiate_optimizer_and_scheduler
( params: Iterator[nn.Parameter], optimizer_config: DictConfig, lr_scheduler_config: DictConfig, )
emg2qwerty/utils.py:16
Methodis_root
(self)
emg2qwerty/decoder.py:205
Methodkeystrokes
Sequence of keys recorded by the keylogger during the data-collection session along with the press and release timestamps for each key
emg2qwerty/data.py:168
Methodlabel
Last label corresponding to this decoding state.
emg2qwerty/decoder.py:292
Methodlabel_to_char
Convert a single label to its corresponding textual representation after standardizing.
emg2qwerty/charset.py:218
Methodlabel_to_unicode
Fetch the unicode value for the given categorical label.
emg2qwerty/charset.py:172
Methodlabels
Integer labels corresponding to the label string.
emg2qwerty/data.py:398
Methodlm_score
LM score corresponding to this beam node.
emg2qwerty/decoder.py:328
Methodlm_scores
Sequence of LM scores in the path leading to this beam state.
emg2qwerty/decoder.py:335
Methodlm_state
LM state corresponding to this beam state.
emg2qwerty/decoder.py:314
Methodlm_states
Sequence of LM states in the path leading to this beam state.
emg2qwerty/decoder.py:321
Methodnull_class
Categorical label of the null-class (blank label).
emg2qwerty/charset.py:128
Methodnum_classes
Number of training classes including null-class (blank label).
emg2qwerty/charset.py:133
Methodon_test_epoch_end
(self)
emg2qwerty/lightning.py:263
Methodon_train_epoch_end
(self)
emg2qwerty/lightning.py:257
Methodon_validation_epoch_end
(self)
emg2qwerty/lightning.py:260
Methodp_total
Total probability (in log-space) of the decoding path leading to this state.
emg2qwerty/decoder.py:286
Methodprompts
Sequence of sentences prompted to the user during the data-collection session along with the start and end timestamps for each prompt.
emg2qwerty/data.py:175
Functionsample_users
Sample `n` users from the given dataset who have at least `min_sessions` sessions.
scripts/generate_splits.py:47
Methodsession_name
Unique name of the session.
emg2qwerty/data.py:149
Methodsetup
(self, stage: str | None = None)
emg2qwerty/lightning.py:62
Methodslice
Load and return a contiguous slice of the timeseries windowed by the provided start and end timestamps. Args: start_t (fl
emg2qwerty/data.py:107
Functiontest_beamstate_lm
Test BeamState with LM.
emg2qwerty/tests/decoder_test.py:143
Functiontest_beamstate_multiple_paths
Test `BeamState` and `TrieNode` operations when several paths lead to same decoding. Two paths leading to the same decoding prefix should mat
emg2qwerty/tests/decoder_test.py:201
Functiontest_beamstate_no_lm
Test BeamState without LM.
emg2qwerty/tests/decoder_test.py:101
Functiontest_clean_str
(_input: str, expected: str)
emg2qwerty/tests/charset_test.py:25
Methodtest_dataloader
(self)
emg2qwerty/lightning.py:124
Functiontest_greedy_decoder
Test CTCGreedyDecoder basics.
emg2qwerty/tests/decoder_test.py:41
Functiontest_greedy_decoder_batch
Test CTCGreedyDecoder.decode_batch() API for batched decoding.
emg2qwerty/tests/decoder_test.py:79
Functiontest_keys_to_str
(_input: list[KeyChar], expected: str)
emg2qwerty/tests/charset_test.py:77
Functiontest_label_data
(text: str, labels: list[int])
emg2qwerty/tests/data_test.py:24
Functiontest_lm_score
Test CTCBeamDecoder delete handling. Total lm score for a word should be the same irrespective of deletes.
emg2qwerty/tests/decoder_test.py:311
Functiontest_logsumexp
(xs: list[float])
emg2qwerty/tests/decoder_test.py:23
Methodtest_step
(self, *args, **kwargs)
emg2qwerty/lightning.py:254
Functiontest_str_to_keys
(_input: str, expected: list[KeyChar])
emg2qwerty/tests/charset_test.py:51
Functiontest_str_to_labels
(_input: str)
emg2qwerty/tests/charset_test.py:96
Functiontest_timestamps
Test that the decoder tracks onset timestamps correctly despite several paths leading to the same decoding. Consider the following two paths
emg2qwerty/tests/decoder_test.py:246
Methodtimestamp
Last timestamp corresponding to this state.
emg2qwerty/decoder.py:297
Methodtimestamps
Sequence of onset timestamps corresponding to the decoded labels in the path leading to this beam state.
emg2qwerty/decoder.py:308
Methodtimestamps
EMG timestamps. NOTE: This reads the entire sequence of timesetamps from the underlying HDF5 file and therefore incurs disk latency.
emg2qwerty/data.py:138
Methodtrain_dataloader
(self)
emg2qwerty/lightning.py:102
Methodtraining_step
(self, *args, **kwargs)
emg2qwerty/lightning.py:248
Methodunicode_to_key
Fetch the key corresponding to the given unicode value.
emg2qwerty/charset.py:156
Methodunicode_to_label
Fetch the categorical label for the given unicode value.
emg2qwerty/charset.py:168
Methoduser
Unique ID of the user this session corresponds to.
emg2qwerty/data.py:154
Methodval_dataloader
(self)
emg2qwerty/lightning.py:113
Methodvalidation_step
(self, *args, **kwargs)
emg2qwerty/lightning.py:251
← previous101–177 of 177, ranked by callers