MCPcopy Create free account

hub / github.com/HazyResearch/spacetime / functions

Functions270 in github.com/HazyResearch/spacetime

↓ 18 callersMethodregister
Utility method: register a tensor as a buffer or trainable parameter
model/components.py:17
↓ 10 callersMethodnorm
(self, x, ord=1)
model/ssm/companion.py:61
↓ 9 callersFunction_c2r
(x)
model/functional/cauchy.py:36
↓ 9 callersFunctionprint_header
(x, border='both')
utils/logging.py:10
↓ 7 callersMethod__init__
(self)
dataloaders/datasets/informer.py:27
↓ 7 callersFunction_broadcast_dims
(*tensors)
model/functional/cauchy.py:31
↓ 6 callersFunctionkrylov
Compute the Krylov matrix (b, Ab, A^2b, ...) using the squaring trick. If return_power=True, return A^{L-1} as well
model/functional/krylov.py:51
↓ 5 callersFunctionprint_config
Prints content of DictConfig using Rich library and its tree structure. Args: config (DictConfig): Configuration composed by Hydra.
utils/logging.py:40
↓ 5 callersFunctiontorch2numpy
Convert a torch float32 tensor to a numpy array, sharing the same memory.
model/functional/complex.py:31
↓ 4 callersFunction_logsumexp
logsumexp for complex
model/functional/toeplitz.py:211
↓ 4 callersFunction_r2c
(x)
model/functional/cauchy.py:37
↓ 4 callersFunctioncausal_convolution
(u, v, fast=True, pad=False)
model/functional/toeplitz.py:152
↓ 4 callersMethodfft_conv
(self, u_input: torch.tensor, v_kernel: torch.tensor)
model/ssm/base.py:52
↓ 4 callersFunctionget_data_module
(args)
dataloaders/__init__.py:24
↓ 4 callersMethodinit_kernel_weights
(self, kernel_init)
model/ssm/companion.py:25
↓ 4 callersFunctionis_list
(x)
utils/config.py:37
↓ 4 callersFunctiontriangular_toeplitz_multiply_
(u, v, sum=None)
model/functional/toeplitz.py:35
↓ 3 callersMethod__init__
(self, input_dim: int, pre_config: str=None, ssm_config: s
model/block.py:18
↓ 3 callersMethod_get_data_filename
(self, variant)
dataloaders/datasets/informer.py:508
↓ 3 callersFunctioncompanion_from_p
Arguments: p: (..., d) Return: A: (..., d, d)
model/functional/companion_krylov.py:9
↓ 3 callersFunctionget_loss
Different loss functions depending on the dataset / task
loss.py:13
↓ 3 callersMethodinit_kernel_weights
(self, kernel_init)
model/ssm/closed_loop/companion.py:39
↓ 3 callersMethodinverse_transform
(self, data, loc=None)
dataloaders/datasets/informer.py:217
↓ 3 callersFunctiontorch2cupy
(tensor)
model/functional/complex.py:37
↓ 3 callersFunctiontype_of_script
()
utils/logging.py:29
↓ 3 callersFunctionupdate_mlp_config_from_args
(config, args, input_dims=True, output_dims=True,
setup/configs/model.py:229
↓ 3 callersFunctionupdate_n_heads
(config, args)
setup/configs/model.py:190
↓ 2 callersFunctionActivation
(activation=None, size=None, dim=-1, inplace=False)
model/components.py:39
↓ 2 callersMethod_dataloader
(self, dataset, resolutions, **loader_args)
dataloaders/datasets/sequence.py:155
↓ 2 callersMethod_eval_dataloader
(self, dataset, train_resolution, eval_resolutions, **kwargs)
dataloaders/datasets/sequence.py:132
↓ 2 callersFunction_fft
(x, N)
model/functional/toeplitz.py:162
↓ 2 callersFunctionaverage_horizons
y.shape is B x L x D
train/evaluate.py:73
↓ 2 callersFunctionconstruct_toeplitz_log
(v)
model/functional/toeplitz.py:202
↓ 2 callersFunctioncupy2torch
(tensor)
model/functional/complex.py:41
↓ 2 callersFunctionformat_arg
(arg_name, cutoff=2)
setup/experiment.py:9
↓ 2 callersMethodget_kernel
(self)
model/ssm/base.py:70
↓ 2 callersFunctionget_pascal
(n, total_rows=None)
model/ssm/preprocess/differencing.py:40
↓ 2 callersFunctioninit_mlp
(config)
model/mlp.py:7
↓ 2 callersMethodmatrix_power
(self, l, c, b, p)
model/ssm/companion.py:74
↓ 2 callersFunctionmultivariate_RMSE
(reduction)
loss.py:36
↓ 2 callersFunctionrun_epoch
(model, dataloaders, optimizer, scheduler, criterions, config, epoch, input_transform=None, out
train/epoch.py:15
↓ 2 callersFunctionsave_checkpoint
(model, optimizer, config, epoch, split, val_metric, run_val_metric, best_val_metric)
train/epoch.py:55
↓ 2 callersMethodset_closed_loop
(self, mode=True)
model/network.py:72
↓ 2 callersFunctiontriangular_toeplitz_multiply_padded_
Same as triangular_toeplitz_multiply but inputs and output assume to be 0-padded already.
model/functional/toeplitz.py:47
↓ 2 callersFunctionupdate_n_kernels
(config, args, n_heads)
setup/configs/model.py:205
↓ 2 callersFunctionupdate_output_config_from_args
(config, args, update_output_dim=False, output_dim=None)
setup/configs/model.py:269
↓ 2 callersFunctionupdate_preprocess_config_from_args
(config, args)
setup/configs/model.py:130
↓ 1 callersMethod__getitem__
(self, index)
dataloaders/datasets/informer.py:334
↓ 1 callersMethod__init__
Transform data: f(x) = ax - b
data_transforms/affine.py:5
↓ 1 callersMethod__init__
(self, lag)
data_transforms/mean.py:9
↓ 1 callersMethod__init__
(self)
model/components.py:14
↓ 1 callersMethod__init__
(self, model_dim: int, n_kernels: int, # Number of kernels / scales
model/ssm/base.py:10
↓ 1 callersMethod__read_data__
(self)
dataloaders/datasets/informer.py:299
↓ 1 callersMethod_borders
(self, df_raw)
dataloaders/datasets/informer.py:281
↓ 1 callersFunction_ifft
(x, N)
model/functional/toeplitz.py:163
↓ 1 callersMethod_process_columns
(self, df_raw)
dataloaders/datasets/informer.py:289
↓ 1 callersMethodbackward
(ctx, grad)
model/functional/toeplitz.py:65
↓ 1 callersMethodbackward
(ctx, grad)
model/functional/complex.py:76
↓ 1 callersFunctionbetter_metric
(metric_a, metric_b, metric_name)
train/epoch.py:48
↓ 1 callersFunctioncauchy_conj
(v, z, w, num=2, denom=2)
model/functional/cauchy.py:110
↓ 1 callersFunctioncausal_convolution_inverse
Invert the causal convolution/polynomial/triangular Toeplitz matrix represented by u. This is easiest in the polynomial view: https://www.cs
model/functional/toeplitz.py:165
↓ 1 callersFunctioncausal_convolution_inverse_wrong
Solve u * x = v. Initial attempt by inverting the multiplication algorithm, which I think doesn't work.
model/functional/toeplitz.py:191
↓ 1 callersFunctioncompanion_krylov
Compute the Krylov matrix (c^T b, c^T A b, c^T A^2 b, ...), where A = shift + p e_d^T. Arguments: p: (..., d), real b: (...,
model/functional/companion_krylov.py:23
↓ 1 callersFunctioncomplex_mul_torch
(X, Y)
model/functional/complex.py:83
↓ 1 callersFunctioncompute_informer_metrics
(y_pred, y_true)
train/step/informer.py:8
↓ 1 callersFunctionconjugate_torch
(X)
model/functional/complex.py:55
↓ 1 callersFunctionconstruct_toeplitz
Explicit construction of Krylov matrix [v A @ v A^2 @ v ... A^{n-1} @ v] where A = Z_f. This uses vectorized indexing and cumprod so it's much
model/functional/toeplitz.py:17
↓ 1 callersFunctionevaluate_model
(model, **kwargs)
train/evaluate.py:11
↓ 1 callersFunctionfft_conv
(u, v)
model/functional/companion_krylov.py:47
↓ 1 callersMethodfft_conv_d
(self, u, v)
model/ssm/closed_loop/companion.py:64
↓ 1 callersMethodfit
(self, data)
dataloaders/datasets/informer.py:200
↓ 1 callersMethodget_companion_matrix
(self, p)
model/ssm/closed_loop/companion.py:57
↓ 1 callersFunctionget_companion_ssm_kwargs_from_args
(config, args)
setup/configs/model.py:174
↓ 1 callersFunctionget_data_transforms
(method, lag)
data_transforms/__init__.py:7
↓ 1 callersFunctionget_dataloader_config
(args, config_dir='./configs')
setup/configs/data.py:15
↓ 1 callersFunctionget_dataset
(name)
dataloaders/informer.py:7
↓ 1 callersFunctionget_dataset_config
(args, config_dir='./configs')
setup/configs/data.py:7
↓ 1 callersFunctionget_evaluation_loaders
(dataloaders, batch_size)
dataloaders/__init__.py:50
↓ 1 callersMethodget_kernel
Initialize weights for differencing kernel - Assume u is shape B x D x L
model/ssm/preprocess/residual.py:59
↓ 1 callersFunctionget_optimizer
(model, configs)
optimizer.py:7
↓ 1 callersFunctionget_optimizer_config
(args, config_dir='./configs')
setup/configs/optimizer.py:5
↓ 1 callersFunctionget_plotting_samples
y = {'true': torch.stack(total_y_true) 'pred': torch.stack(total_y_pred), 'true_informer': total_y_true_informer 'pred
train/evaluate.py:55
↓ 1 callersFunctionget_scheduler
(model, optimizer, configs)
optimizer.py:17
↓ 1 callersFunctionget_scheduler_config
(args, config_dir='./configs')
setup/configs/optimizer.py:17
↓ 1 callersFunctioninformer_MSE
(y_pred, y_true)
loss.py:52
↓ 1 callersMethodinit_blocks
(self, config)
model/block.py:79
↓ 1 callersMethodinit_blocks
(self, config)
model/block.py:107
↓ 1 callersMethodinit_decoder
(self, config)
model/network.py:56
↓ 1 callersMethodinit_differencing_weights
(self)
model/ssm/preprocess/residual.py:39
↓ 1 callersMethodinit_dropout
(self)
model/mlp.py:82
↓ 1 callersFunctioninit_embedding
(config)
model/embedding/__init__.py:6
↓ 1 callersMethodinit_embedding
(self, config)
model/network.py:47
↓ 1 callersMethodinit_encoder
(self, config)
model/network.py:50
↓ 1 callersMethodinit_heads
(self, n_heads: int, head_dim: int)
model/ssm/base.py:41
↓ 1 callersMethodinit_moving_average_weights
(self)
model/ssm/preprocess/residual.py:45
↓ 1 callersMethodinit_output
(self, config)
model/network.py:62
↓ 1 callersFunctioninit_ssm
(config)
model/ssm/__init__.py:6
↓ 1 callersMethodinit_weights
(self, embedding_config: dict, encoder_config: dict,
model/network.py:37
↓ 1 callersMethodinit_weights
(self)
model/ssm/base.py:62
↓ 1 callersFunctioninitialize_args
()
setup/args.py:4
next →1–100 of 270, ranked by callers