Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/facebookresearch/emg2qwerty
/ functions
Functions
177 in github.com/facebookresearch/emg2qwerty
⨍
Functions
177
◇
Types & classes
26
↳
Endpoints
7
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
Method
allowed_chars
Sequence of allowed chars, order respected.
emg2qwerty/charset.py:148
Method
allowed_keys
Sequence of allowed keys, order respected.
emg2qwerty/charset.py:138
Method
allowed_unicodes
Sequence of allowed unicode values, order respected.
emg2qwerty/charset.py:143
Method
collate
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
Method
condition
(self)
emg2qwerty/data.py:159
Method
configure_optimizers
(self)
emg2qwerty/lightning.py:266
Function
cpus_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
Method
decode
( self, emissions: np.ndarray, timestamps: np.ndarray, finish: bool = False,
emg2qwerty/decoder.py:459
Method
decoding
Sequence of decoded labels in the path leading to this beam state, ignoring the blank label at the trie root.
emg2qwerty/decoder.py:302
Method
depth
(self)
emg2qwerty/decoder.py:209
Method
duration_mins
The duration of the EMG session in minutes.
emg2qwerty/data.py:163
Method
fields
The names of the fields in the ``timeseries`` compound HDF5 Dataset.
emg2qwerty/data.py:133
Method
forward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:35
Method
forward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:92
Method
forward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:162
Method
forward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:199
Method
forward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:236
Method
forward
(self, inputs: torch.Tensor)
emg2qwerty/modules.py:279
Method
get_best_decodings
(self, k: int = 5)
emg2qwerty/decoder.py:455
Function
get_last_checkpoint
(checkpoint_dir: Path)
emg2qwerty/utils.py:30
Function
instantiate_optimizer_and_scheduler
( params: Iterator[nn.Parameter], optimizer_config: DictConfig, lr_scheduler_config: DictConfig, )
emg2qwerty/utils.py:16
Method
is_root
(self)
emg2qwerty/decoder.py:205
Method
keystrokes
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
Method
label
Last label corresponding to this decoding state.
emg2qwerty/decoder.py:292
Method
label_to_char
Convert a single label to its corresponding textual representation after standardizing.
emg2qwerty/charset.py:218
Method
label_to_unicode
Fetch the unicode value for the given categorical label.
emg2qwerty/charset.py:172
Method
labels
Integer labels corresponding to the label string.
emg2qwerty/data.py:398
Method
lm_score
LM score corresponding to this beam node.
emg2qwerty/decoder.py:328
Method
lm_scores
Sequence of LM scores in the path leading to this beam state.
emg2qwerty/decoder.py:335
Method
lm_state
LM state corresponding to this beam state.
emg2qwerty/decoder.py:314
Method
lm_states
Sequence of LM states in the path leading to this beam state.
emg2qwerty/decoder.py:321
Method
null_class
Categorical label of the null-class (blank label).
emg2qwerty/charset.py:128
Method
num_classes
Number of training classes including null-class (blank label).
emg2qwerty/charset.py:133
Method
on_test_epoch_end
(self)
emg2qwerty/lightning.py:263
Method
on_train_epoch_end
(self)
emg2qwerty/lightning.py:257
Method
on_validation_epoch_end
(self)
emg2qwerty/lightning.py:260
Method
p_total
Total probability (in log-space) of the decoding path leading to this state.
emg2qwerty/decoder.py:286
Method
prompts
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
Function
sample_users
Sample `n` users from the given dataset who have at least `min_sessions` sessions.
scripts/generate_splits.py:47
Method
session_name
Unique name of the session.
emg2qwerty/data.py:149
Method
setup
(self, stage: str | None = None)
emg2qwerty/lightning.py:62
Method
slice
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
Function
test_beamstate_lm
Test BeamState with LM.
emg2qwerty/tests/decoder_test.py:143
Function
test_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
Function
test_beamstate_no_lm
Test BeamState without LM.
emg2qwerty/tests/decoder_test.py:101
Function
test_clean_str
(_input: str, expected: str)
emg2qwerty/tests/charset_test.py:25
Method
test_dataloader
(self)
emg2qwerty/lightning.py:124
Function
test_greedy_decoder
Test CTCGreedyDecoder basics.
emg2qwerty/tests/decoder_test.py:41
Function
test_greedy_decoder_batch
Test CTCGreedyDecoder.decode_batch() API for batched decoding.
emg2qwerty/tests/decoder_test.py:79
Function
test_keys_to_str
(_input: list[KeyChar], expected: str)
emg2qwerty/tests/charset_test.py:77
Function
test_label_data
(text: str, labels: list[int])
emg2qwerty/tests/data_test.py:24
Function
test_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
Function
test_logsumexp
(xs: list[float])
emg2qwerty/tests/decoder_test.py:23
Method
test_step
(self, *args, **kwargs)
emg2qwerty/lightning.py:254
Function
test_str_to_keys
(_input: str, expected: list[KeyChar])
emg2qwerty/tests/charset_test.py:51
Function
test_str_to_labels
(_input: str)
emg2qwerty/tests/charset_test.py:96
Function
test_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
Method
timestamp
Last timestamp corresponding to this state.
emg2qwerty/decoder.py:297
Method
timestamps
Sequence of onset timestamps corresponding to the decoded labels in the path leading to this beam state.
emg2qwerty/decoder.py:308
Method
timestamps
EMG timestamps. NOTE: This reads the entire sequence of timesetamps from the underlying HDF5 file and therefore incurs disk latency.
emg2qwerty/data.py:138
Method
train_dataloader
(self)
emg2qwerty/lightning.py:102
Method
training_step
(self, *args, **kwargs)
emg2qwerty/lightning.py:248
Method
unicode_to_key
Fetch the key corresponding to the given unicode value.
emg2qwerty/charset.py:156
Method
unicode_to_label
Fetch the categorical label for the given unicode value.
emg2qwerty/charset.py:168
Method
user
Unique ID of the user this session corresponds to.
emg2qwerty/data.py:154
Method
val_dataloader
(self)
emg2qwerty/lightning.py:113
Method
validation_step
(self, *args, **kwargs)
emg2qwerty/lightning.py:251
← previous
101–177 of 177, ranked by callers