MCPcopy Create free account

hub / github.com/AI4HealthUOL/ecg-fm-benchmarking / functions

Functions823 in github.com/AI4HealthUOL/ecg-fm-benchmarking

↓ 2 callersFunctionembed_c2r
(A)
code/clinical_ts/ts/s4_modules/s42.py:315
↓ 2 callersFunctionembed_c2r
(A)
code/clinical_ts/models/s42.py:314
↓ 2 callersFunctioneval_scores
returns a dictionary of performance metrics: sample centric c.f. https://github.com/ashleyzhou972/CAFA_assessment_tool/blob/master/precrec/precRec
code/clinical_ts/utils/eval_utils_cafa.py:181
↓ 2 callersMethodeval_scores
(self, targs, preds, classes=None, bootstrap=False)
code/main_lite_base.py:97
↓ 2 callersMethodeval_scores
(self, targs,preds,classes=None,bootstrap=False)
code/main_lite.py:91
↓ 2 callersFunctionfind_equivalence_group
(models_to_test, reference_model)
mimic_evaluation.py:55
↓ 2 callersFunctionfix_nans_and_clip
(signal,clip_amp=3)
code/clinical_ts/utils/ecg_utils.py:51
↓ 2 callersFunctionget_1d_sincos_pos_embed
Positional embedding for 1D patches.
code/clinical_ts/models/ecg_foundation_models/st_mem/mtae.py:25
↓ 2 callersFunctionget_1d_sincos_pos_embed
Positional embedding for 1D patches.
code/clinical_ts/models/ecg_foundation_models/st_mem/st_mem.py:25
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:40
↓ 2 callersFunctionget_2d_sincos_pos_embed
grid_size_h: int of the grid height grid_size_w: int of the grid width return: pos_embed: [grid_size_h*grid_size_w, embed_dim] or [1+
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:12
↓ 2 callersFunctionget_chapter
(icd_code)
mimic_preprocessing.py:55
↓ 2 callersMethodget_custom_transforms
override transforms in derived classes if desired
code/clinical_ts/template_model.py:409
↓ 2 callersFunctionget_git_revision_short_hash
Get the short git revision hash.
code/clinical_ts/utils/basic_io.py:15
↓ 2 callersMethodget_params
(self)
code/clinical_ts/models/fm_ecg.py:810
↓ 2 callersFunctiongrad_to_half_grad
(dx)
code/extensions/cauchy/test_cauchy.py:26
↓ 2 callersMethodinitialize_weights
(self)
code/clinical_ts/models/ecg_foundation_models/st_mem/mtae.py:114
↓ 2 callersFunctionload_memmap_meta_dict
Loads the 'meta' dictionary from the memmap meta file associated with the given memmap_filename. Also attempts to load annotation meta if a c
code/clinical_ts/data/time_series_dataset_utils.py:432
↓ 2 callersFunctionnorm_cdf
(x)
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:68
↓ 2 callersFunctionnpys_to_memmap
fs: sampling frequency now required argument channel_itos: list of channel names (for mapping to integers) converts list of filenames poi
code/clinical_ts/data/time_series_dataset_utils.py:335
↓ 2 callersFunctionnpys_to_memmap_batched
analogous to npys_to_memmap but processes batches of files before flushing them into memmap for faster processing
code/clinical_ts/data/time_series_dataset_utils.py:185
↓ 2 callersMethodon_valtest_epoch_end
(self, outputs, test, dataloader_idx=0)
code/clinical_ts/template_model.py:297
↓ 2 callersMethodon_valtest_epoch_eval
(self, outputs_all, dataloader_idx, test=False)
code/main_lite_base.py:165
↓ 2 callersMethodon_valtest_epoch_eval
(self, outputs_all, dataloader_idx, test=False)
code/main_lite.py:103
↓ 2 callersMethodopen_memmap
(self, filename, dtype, mode, shape)
code/clinical_ts/data/time_series_dataset.py:281
↓ 2 callersFunctionpower
Compute A^L and the scan sum_i A^i v_i A: (..., N, N) v: (..., N, L)
code/clinical_ts/ts/s4_modules/s42.py:266
↓ 2 callersFunctionpower
Compute A^L and the scan sum_i A^i v_i A: (..., N, N) v: (..., N, L)
code/clinical_ts/models/s42.py:265
↓ 2 callersFunctionprepare_consistency_mapping
(codes_unique, codes_unique_all, propagate_all=False)
code/clinical_ts/utils/mimic_ecg_preprocessing.py:13
↓ 2 callersMethodrepresentation
(self, x)
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:387
↓ 2 callersFunctionstratify_batched
calls stratify in batches and collects results afterwards (use only for really large datasets)
code/clinical_ts/utils/stratify.py:130
↓ 2 callersMethodupdate_ema_params
(self)
code/clinical_ts/template_modules.py:449
↓ 1 callersFunctionBatchNorm
BatchNorm layer with `nf` features initialized depending on `norm_type`.
code/clinical_ts/models/xresnet1d.py:32
↓ 1 callersFunctionBatchNorm
BatchNorm layer with `nf` features and `ndim` initialized depending on `norm_type`.
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:99
↓ 1 callersFunctionLinearActivation
Returns a linear nn.Module with control over axes order, initialization, and activation
code/clinical_ts/ts/s4_modules/s42.py:178
↓ 1 callersFunctionLinearActivation
Returns a linear nn.Module with control over axes order, initialization, and activation
code/clinical_ts/models/s42.py:177
↓ 1 callersFunctionResNet18
(num_classes)
code/clinical_ts/models/ecg_foundation_models/merl/resnet1d.py:97
↓ 1 callersMethod__init__
(self, hparams)
code/main_lite_base.py:72
↓ 1 callersMethod__init__
(self, hparams)
code/main_lite.py:64
↓ 1 callersMethod__init__
(self, hparams)
code/clinical_ts/template_model.py:819
↓ 1 callersMethod__init__
accepts three kinds of input: 1) filenames pointing to aligned numpy arrays [timesteps,channels,...] for data and either integer labe
code/clinical_ts/data/time_series_dataset.py:116
↓ 1 callersMethod__init__
(self, num_classes=1, num_output_tokens=1)
code/clinical_ts/models/fm_movement.py:7
↓ 1 callersMethod__init__
(self, num_classes=1, num_output_tokens=1)
code/clinical_ts/models/fm_eeg.py:7
↓ 1 callersMethod__init__
(self, activation : str)
code/clinical_ts/models/ecg_foundation_models/hubert_ecg/hubert_ecg_classification.py:8
↓ 1 callersMethod__init__
(self, config: HuBERTECGConfig)
code/clinical_ts/models/ecg_foundation_models/hubert_ecg/hubert_ecg.py:25
↓ 1 callersFunction_broadcast_dims
(*tensors)
code/clinical_ts/ts/s4_modules/s42.py:60
↓ 1 callersFunction_broadcast_dims
(*tensors)
code/clinical_ts/models/s42.py:59
↓ 1 callersFunction_cauchy_mult
(v, z, w, symmetric=True)
code/extensions/cauchy/cauchy.py:40
↓ 1 callersFunction_conv_func
Return the proper conv `ndim` function, potentially `transposed`.
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:75
↓ 1 callersMethod_eval
(self,targs,preds)
code/clinical_ts/metric/base.py:84
↓ 1 callersFunction_explore_recursive
(parent_name, element)
code/pretrain.py:35
↓ 1 callersFunction_get_norm
Norm layer with `nf` features initialized depending on `norm_type`.
code/clinical_ts/models/xresnet1d.py:24
↓ 1 callersFunction_get_norm
Norm layer with `nf` features and `ndim` initialized depending on `norm_type`.
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:89
↓ 1 callersMethod_make_block_mask
(self, mask_scale)
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:295
↓ 1 callersMethod_make_layer
(self, ni, nf, blocks, stride, kernel_size, heads=4, mhsa=False, **kwargs)
code/clinical_ts/models/xresnet1d.py:162
↓ 1 callersMethod_make_layer
(self, ni, nf, blocks, stride, kernel_size, sa, **kwargs)
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:215
↓ 1 callersMethod_make_rand_mask
(self, mask_scale)
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:287
↓ 1 callersMethod_mask_hidden_states
Masks extracted features along time axis and/or along feature axis according to [SpecAugment](https://arxiv.org/abs/1904.08779).
code/clinical_ts/models/ecg_foundation_models/hubert_ecg/hubert_ecg.py:41
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
code/clinical_ts/models/ecg_foundation_models/ecg_jepa/ecg_jepa.py:65
↓ 1 callersMethod_override_forward
(self)
code/clinical_ts/models/fm_ecg.py:112
↓ 1 callersMethod_override_forward
(self)
code/clinical_ts/models/fm_ecg.py:577
↓ 1 callersMethod_override_forward
(self)
code/clinical_ts/models/fm_ecg.py:732
↓ 1 callersMethod_override_forward
(self)
code/clinical_ts/models/fm_ecg.py:945
↓ 1 callersMethod_override_forward_encoding
(self)
code/clinical_ts/models/fm_ecg.py:431
↓ 1 callersMethod_override_representation
(self)
code/clinical_ts/models/fm_ecg.py:262
↓ 1 callersFunction_reformat_lbl_itos
(k)
code/clinical_ts/metric/base.py:36
↓ 1 callersMethod_setup_linear
Create parameters that allow fast linear stepping of state
code/clinical_ts/ts/s4_modules/s42.py:752
↓ 1 callersMethod_setup_linear
Create parameters that allow fast linear stepping of state
code/clinical_ts/models/s42.py:751
↓ 1 callersMethod_step_state
Must be called after self.default_state() is used to construct an initial state!
code/clinical_ts/ts/s4_modules/s42.py:839
↓ 1 callersMethod_step_state
Must be called after self.default_state() is used to construct an initial state!
code/clinical_ts/models/s42.py:838
↓ 1 callersFunction_string_to_class
Convert string target to class object.
code/clinical_ts/models/ecg_foundation_models/ecg_cpc/basic_io.py:11
↓ 1 callersFunction_xresnet1d
(expansion, layers, **kwargs)
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:231
↓ 1 callersFunctionadd_application_specific_args
(parser)
code/main_lite.py:460
↓ 1 callersFunctionadd_default_args
()
code/main_lite.py:389
↓ 1 callersFunctionadd_model_specific_args
(parser)
code/main_lite.py:445
↓ 1 callersFunctionage_to_str
(age)
code/clinical_ts/utils/ecg_utils.py:1603
↓ 1 callersFunctionapply_filter
Bandpass filtering to remove noise, artifacts etc
code/clinical_ts/models/ecg_foundation_models/hubert_ecg/utils.py:5
↓ 1 callersFunctionattrib_adaptiveconcatpool
(self,relevant,irrelevant)
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:54
↓ 1 callersFunctionbackward_params_list
(L)
code/extensions/cauchy/tune_cauchy.py:28
↓ 1 callersFunctionbenchmark_extension
(benchmark_script, *benchmark_args, verbose=True)
code/extensions/cauchy/tuner.py:75
↓ 1 callersFunctionbutter_filter
returns butterworth filter with given specifications
code/clinical_ts/data/time_series_dataset_transforms.py:40
↓ 1 callersFunctioncauchy_conj
Pykeops version
code/clinical_ts/ts/s4_modules/s42.py:78
↓ 1 callersFunctioncauchy_conj
Pykeops version
code/clinical_ts/models/s42.py:77
↓ 1 callersFunctioncauchy_mult_bwd
code/extensions/cauchy/cauchy.cpp:39
↓ 1 callersFunctioncauchy_mult_fwd
code/extensions/cauchy/cauchy.cpp:26
↓ 1 callersFunctioncauchy_mult_keops
(v, z, w)
code/extensions/cauchy/cauchy.py:29
↓ 1 callersFunctioncauchy_mult_sym_bwd
code/extensions/cauchy/cauchy.cpp:68
↓ 1 callersFunctioncauchy_mult_sym_fwd
code/extensions/cauchy/cauchy.cpp:55
↓ 1 callersFunctioncauchy_mult_torch
v: (B, N) z: (L) w: (B, N) symmetric: whether to assume that v and w contain complex conjugate pairs, of the form [v_half, v_half
code/extensions/cauchy/cauchy.py:8
↓ 1 callersFunctioncd_adaptiveconcatpool
(relevant, irrelevant, module)
code/clinical_ts/models/ecg_foundation_models/ecgfm_ked.py:50
↓ 1 callersFunctioncheck_binary_column
(df, col)
mimic_preprocessing.py:513
↓ 1 callersFunctioncheck_reg_column
(df, col)
mimic_preprocessing.py:524
↓ 1 callersFunctionclean_diags
(lst)
code/clinical_ts/utils/ecg_utils.py:201
↓ 1 callersFunctioncombine_all_means_vars
(means,vars,lengths)
code/clinical_ts/data/time_series_dataset_utils.py:170
↓ 1 callersFunctioncombine_two_means_vars
(x1,x2)
code/clinical_ts/data/time_series_dataset_utils.py:163
↓ 1 callersFunctioncompare_models_per_dataset_classification
(y_true, model_preds_dict, classes=None, n_iterations=1000)
mimic_evaluation.py:48
↓ 1 callersFunctioncompare_models_per_dataset_regression
(y_true, model_preds_dict, classes=None, n_iterations=1000)
mimic_evaluation.py:103
↓ 1 callersFunctioncompile_extension
(temp_dir, install=False, verbose=True)
code/extensions/cauchy/tuner.py:40
↓ 1 callersFunctionconvert_age
(age)
code/clinical_ts/utils/stratify.py:106
↓ 1 callersFunctioncos_anneal
ramp from (e0, t0) -> (e1, t1) through a cosine schedule based on e in [e0, e1]
code/clinical_ts/utils/callbacks.py:129
↓ 1 callersFunctioncreate_head1d
Model head that takes `nf` features, runs through `lin_ftrs`, and about `nc` classes; added bn and act here
code/clinical_ts/ts/basic_conv1d_modules/basic_conv1d.py:126
← previousnext →101–200 of 823, ranked by callers