MCPcopy Create free account

hub / github.com/SPOClab-ca/dn3 / functions

Functions482 in github.com/SPOClab-ca/dn3

Method__init__
(self, low_bound=-1, high_bound=1)
dn3/transforms/instance.py:132
Method__init__
Pad the number of samples. Parameters ---------- start_padding : int The number of padded sa
dn3/transforms/instance.py:143
Method__init__
This is in essence a DN3 wrapper for the pytorch function `interpolate() <https://pytorch.org/docs/stable/nn.functional.html>`_
dn3/transforms/instance.py:174
Method__init__
(self, original_sequence_length, crop_sequence_min)
dn3/transforms/instance.py:224
Method__init__
Crop to a new length of `cropped_length` from the specified `start_offset`, or randomly select an offset. Parameters -------
dn3/transforms/instance.py:238
Method__init__
(self, desired_sequence_length, stdev, truncate=None, mode='nearest', new_sfreq=None, crop_si
dn3/transforms/instance.py:282
Method__init__
Creates a Deep10-10 mapping for the provided dataset. Parameters ---------- dataset : Dataset max_scale : f
dn3/transforms/instance.py:323
Method__init__
(self)
dn3/transforms/instance.py:388
Method__init__
Transforms incoming Deep1010 data into exclusively the more limited 1020 channel set.
dn3/transforms/instance.py:414
Method__init__
(self, randomize=False)
dn3/transforms/instance.py:441
Method__init__
(self, mask_index=1, purge_mask=False)
dn3/transforms/instance.py:458
Method__init__
(self, p=0.1, max_intensity=0.3, blank_eog_p=1.0)
dn3/transforms/instance.py:477
Method__init__
Uniformly selects a transform from the `transform_list` with probabilities according to `weights`. Parameters ----------
dn3/transforms/instance.py:497
Method__init__
(self, reference_matrices, inds)
dn3/transforms/instance.py:555
Method__init__
(self, axis=-1)
dn3/trainable/layers.py:9
Method__init__
(self, axes)
dn3/trainable/layers.py:31
Method__init__
(self, indices)
dn3/trainable/layers.py:47
Method__init__
(self, in_filters, out_filters, kernel, stride=(1, 1), padding=0, dilation=1, groups=1, do_rate=0.5,
dn3/trainable/layers.py:80
Method__init__
This DenseNet-inspired filter block features in the TIDNet network from Kostas & Rudzicz 2020 (Thinker Invariance). 2D convolution is
dn3/trainable/layers.py:108
Method__init__
This extends the :any:`DenseFilter` to specifically operate in channel space and collapse this dimension over the course of `depth` l
dn3/trainable/layers.py:145
Method__init__
(self, channels, filters, depth, in_ch=1, dropout_rate=0.0, activation=nn.LeakyReLU, batch_norm=True,
dn3/trainable/layers.py:182
Method__init__
This implements the dilated temporal-only spanning convolution from TIDNet. Parameters ---------- channels f
dn3/trainable/layers.py:208
Method__init__
(self, in_features, encoder_h=256,)
dn3/trainable/layers.py:253
Method__init__
(self, in_features, encoder_h=256, enc_width=(3, 2, 2, 2, 2, 2), dropout=0., projection_head=
dn3/trainable/layers.py:271
Method__init__
(self, in_features, mask_p_t=0.1, mask_p_c=0.01, mask_t_span=6, mask_c_span=64, dropout=0.1,
dn3/trainable/layers.py:336
Method__init__
(self, in_features, hidden_feedforward=3076, heads=8, layers=8, dropout=0.15, activation='gelu',
dn3/trainable/layers.py:396
Method__init__
(self, samples, channels, return_features=True)
dn3/trainable/models.py:26
Method__init__
(self, targets, samples, channels, return_features=True)
dn3/trainable/models.py:104
Method__init__
Instead of summarizing the entire temporal dimension into a single prediction, a prediction kernel is swept over the final sequence r
dn3/trainable/models.py:188
Method__init__
(self, targets, samples, channels, do=0.25, pooling=8, F1=8, D=2, t_len=65, F2=16, return_fea
dn3/trainable/models.py:276
Method__init__
(self, targets, samples, channels, do=0.25, pooling=8, F1=8, D=2, t_len=65, F2=16, return_fea
dn3/trainable/models.py:336
Method__init__
(self, targets, samples, channels, return_features=True, encoder_h=256,
dn3/trainable/models.py:384
Method__init__
(self, classifier: Classifier, tvector_model: TVector, loss_fn=None, cuda=False, metrics=None,
dn3/trainable/experimental.py:90
Method__init__
(self, t_vector_model)
dn3/trainable/experimental.py:136
Method__init__
Initialization of the Base Trainable object. Any learning procedure that leverages DN3atasets should subclass this base class.
dn3/trainable/processes.py:33
Method__init__
(self, classifier: torch.nn.Module, loss_fn=None, cuda=None, metrics=None, learning_rate=0.01,
dn3/trainable/processes.py:619
Method__init__
(self, encoder, context_fn, mask_rate=0.1, mask_span=6, learning_rate=0.01, temp=0.5, permute
dn3/trainable/processes.py:847
Method__init__
(self, bendr_model, mask_rate=0.1, mask_span=6, learning_rate=0.01, temp=0.5, permuted_encodi
dn3/trainable/processes.py:962
Method__init__
(self, channels, samples, targets)
tests/testTrainables.py:16
Method__len__
(self)
dn3/data/utils.py:70
Method__len__
(self)
dn3/data/dataset.py:34
Method__len__
(self)
dn3/data/dataset.py:342
Method__len__
(self)
dn3/data/dataset.py:411
Method__len__
(self)
dn3/data/dataset.py:557
Method__len__
(self)
dn3/data/dataset.py:972
Method__len__
(self)
dn3/data/dataset.py:1225
Method__str__
(self)
dn3/data/dataset.py:488
Method__str__
(self)
dn3/data/dataset.py:694
Method__str__
(self)
dn3/data/dataset.py:813
Method__str__
(self)
dn3/data/dataset.py:1219
Method__str__
(self)
dn3/transforms/batch.py:15
Method__str__
(self)
dn3/transforms/instance.py:36
Method_contrastive_accuracy
(inputs, outputs)
dn3/trainable/processes.py:946
Function_fif_raw_or_epoch
(fname, preload=True)
dn3/configuratron/config.py:23
Function_heuristic_eeg_resolution
(eeg_ch_name: str)
dn3/transforms/channels.py:117
Function_heuristic_eog_resolution
(eog_channel_name)
dn3/transforms/channels.py:98
Function_heuristic_ref_resolution
(ref_channel_name: str)
dn3/transforms/channels.py:102
Method_make_dataloader
(self, dataset, training=False, **loader_kwargs)
dn3/trainable/processes.py:721
Function_make_span_from_seeds
(seeds, span, total=None)
dn3/trainable/processes.py:832
Method_make_td_layer
(in_ch, out_ch, kernel, dilation)
dn3/trainable/experimental.py:21
Method_mask_pct
(inputs, outputs)
dn3/trainable/processes.py:942
Method_raw_workaround
(self, raw)
dn3/configuratron/config.py:788
Function_trial_stdev
(x)
dn3/data/utils.py:142
Method_validation
(epoch, iteration=None)
dn3/trainable/processes.py:540
Methodadd_batch_transform
(self, transform: BatchTransform, training_only=True)
dn3/trainable/processes.py:169
Methodadd_custom_thinker_loader
Add custom code to load a specific thinker from a set of session files. Warnings ---------- For all intents and purp
dn3/configuratron/config.py:620
Methodadd_transform
Add a transformation that is applied to every fetched item in the dataset Parameters ---------- transform : BaseTran
dn3/data/dataset.py:79
Methodas_dict
(self)
dn3/configuratron/config.py:64
Functionauroc
(y_t, y_p)
dn3/metrics/base.py:70
Functionbalanced_accuracy
(y_t, y_p)
dn3/metrics/base.py:75
Methodbuild_network
(self, **kwargs)
dn3/trainable/experimental.py:96
Methodcalculate_from_remainder
(known_split)
dn3/data/dataset.py:1103
Methodcalculate_loss
(self, inputs, outputs)
dn3/trainable/processes.py:652
Methodcalculate_loss
(self, inputs, outputs)
dn3/trainable/processes.py:951
Methodcalculate_loss
(self, inputs, outputs)
dn3/trainable/processes.py:1003
Methodchannels
Returns ------- channels: list The channel sets used by the dataset.
dn3/data/dataset.py:48
Methodchannels
(self)
dn3/data/dataset.py:213
Methodchannels
(self)
dn3/data/dataset.py:503
Methodchannels
(self)
dn3/data/dataset.py:929
Methodchannels
(self)
dn3/data/dataset.py:1233
Methodcheck
()
tests/testDataset.py:184
Methodcheck_data
()
tests/testDataset.py:277
Methodcheck_eval_mode
(metrics)
tests/testTrainables.py:52
Methodcheck_train_mode
(metrics)
tests/testTrainables.py:48
Methodchecks
(metrics)
tests/testTrainables.py:76
Methodclear_batch_transforms
(self)
dn3/trainable/processes.py:174
Methodclear_transforms
Remove all added transforms from dataset.
dn3/data/dataset.py:110
Methodclear_transforms
(self, deep_clear=False)
dn3/data/dataset.py:1129
Functioncreate_mmi_dataset_from_config
()
tests/testConfig.py:26
Methoddescription
(self, sfreq=None, sequence_len=None)
dn3/trainable/layers.py:304
Methoddescription
(self, sequence_len)
dn3/trainable/processes.py:875
Functiondn3_sklearn_binarized
(func)
dn3/metrics/base.py:58
Functiondn3_sklearn_metric
(func)
dn3/metrics/base.py:43
Methoddownsampling_factor
(self, samples)
dn3/trainable/layers.py:325
Methoddrw
(self, on=True, beta=0.9999)
dn3/trainable/processes.py:810
Methodeasy_parallel
(self)
dn3/trainable/models.py:420
Methodevaluate
(self, dataset, **loader_kwargs)
dn3/trainable/experimental.py:116
Methodevent_mapping
Maps the labels returned by this to the events as recorded in the original annotations or stim channel. Returns -------
dn3/data/dataset.py:421
Methodexpand_for_strided_loss
(factors)
dn3/trainable/processes.py:655
Methodfeatures_forward
(self, x)
dn3/trainable/models.py:215
← previousnext →201–300 of 482, ranked by callers