MCPcopy Create free account

hub / github.com/HazyResearch/spacetime / functions

Functions270 in github.com/HazyResearch/spacetime

Functionconjugate_native
(X)
model/functional/complex.py:27
Methodd_input
(self)
dataloaders/datasets/informer.py:395
Methodd_input
(self)
dataloaders/datasets/informer.py:497
Methodd_output
(self)
dataloaders/datasets/informer.py:401
Methodd_output
(self)
dataloaders/datasets/informer.py:501
Methodforward
(self, x)
data_transforms/affine.py:12
Methodforward
(self, x)
data_transforms/affine.py:22
Methodforward
(self, x)
data_transforms/last.py:8
Methodforward
(self, x)
data_transforms/mean.py:12
Methodforward
(self, x)
data_transforms/mean.py:25
Methodforward
(self, x)
data_transforms/standardize.py:15
Methodforward
(self, u)
model/network.py:91
Methodforward
Input shape: B x L x D
model/block.py:34
Methodforward
(self, u)
model/block.py:64
Methodforward
(self, x)
model/block.py:85
Methodforward
(self, x)
model/block.py:110
Methodforward
(self, x)
model/mlp.py:91
Methodforward
x: (batch, lengths..., dim)
model/components.py:71
Methodforward
(self, x)
model/embedding/base.py:19
Methodforward
(self, u)
model/ssm/base.py:73
Methodforward
(self, u)
model/ssm/base.py:100
Methodforward
(self, u)
model/ssm/companion.py:92
Methodforward
(self, u)
model/ssm/shift.py:33
Methodforward
During training, call this function twice to compute closed-loop and open-loop -> minimize the closed-loop?
model/ssm/closed_loop/companion.py:73
Methodforward
(self, u)
model/ssm/preprocess/residual.py:80
Methodforward
(ctx, u, v)
model/functional/toeplitz.py:60
Methodforward
(ctx, u, v)
model/functional/toeplitz.py:73
Methodforward
(ctx, u, v)
model/functional/toeplitz.py:102
Methodforward
(ctx, u, v)
model/functional/toeplitz.py:118
Methodforward
(ctx, X)
model/functional/complex.py:64
Methodforward
(ctx, X, Y)
model/functional/complex.py:102
Methodget_companion_matrix
(self, p)
model/ssm/closed_loop/shift.py:33
Methodget_kernel
(self, u, c=None, l=None)
model/ssm/companion.py:84
Methodget_kernel
Initialize weights for differencing kernel - Assume u is shape B x D x L
model/ssm/preprocess/differencing.py:31
Methodget_kernel
Initialize weights for differencing kernel - Assume u is shape B x D x L
model/ssm/preprocess/ma_residual.py:33
Functioninformer_MAE
(y_pred, y_true)
loss.py:48
Functioninformer_RMSE
(y_pred, y_true)
loss.py:56
Methodinit_defaults
(self)
dataloaders/datasets/sequence.py:36
Functioninit_preprocess_ssm
(config)
model/ssm/preprocess/__init__.py:8
Methodinit_weights
(self)
model/ssm/base.py:97
Methodinit_weights
(self)
model/ssm/companion.py:37
Methodinit_weights
(self)
model/ssm/shift.py:18
Methodinit_weights
(self)
model/ssm/closed_loop/companion.py:51
Methodinit_weights
(self)
model/ssm/closed_loop/shift.py:14
Methodinit_weights
(self)
model/ssm/preprocess/differencing.py:19
Methodinit_weights
(self)
model/ssm/preprocess/ma_residual.py:20
Methodinit_weights
(self)
model/ssm/preprocess/residual.py:32
Methodinitialize_layers
(self)
model/embedding/linear.py:9
Methodinitialize_layers
(self)
model/embedding/repeat.py:26
Methodinverse_transform
(self, data, loc=None)
dataloaders/datasets/informer.py:391
Functionkrylov_sequential
Constant matrix A A : (..., N, N) b : (..., N) c : (..., N) Returns if c: x : (..., L) x[i, l] = c[i] @ A^l @ b[i]
model/functional/krylov.py:16
Functionkrylov_toeplitz
Specializes to lower triangular Toeplitz matrix A represented by its diagonals A : (..., N) b : (..., N) c : (..., N) Returns x
model/functional/krylov.py:146
Functionkrylov_toeplitz_
Padded version of krylov_toeplitz that saves some fft's TODO currently not faster than original version, not sure why
model/functional/krylov.py:171
Methodl_output
(self)
dataloaders/datasets/informer.py:505
Functionloss
(y_pred, y_true)
loss.py:38
Methodn_tokens_time
(self)
dataloaders/datasets/informer.py:410
Methodn_tokens_time
(self)
dataloaders/datasets/informer.py:440
Methodn_tokens_time
(self)
dataloaders/datasets/informer.py:463
Methodn_tokens_time
(self)
dataloaders/datasets/informer.py:492
Functionpower
Compute A^L and the scan sum_i A^i v_i A: (..., N, N) v: (..., N, L)
model/functional/krylov.py:104
Functionprint_config
Prints content of DictConfig using Rich library and its tree structure. Args: config (DictConfig): Configuration composed by Omegaconf
utils/config.py:10
Functionreal_to_complex
A version of X that's complex (i.e., last dimension is 2). Parameters: X: (...) tensor Return: X_complex: (..., 2) tensor
model/functional/complex.py:45
Methodrepeat
(self, x)
model/embedding/repeat.py:22
Methodsetup
(self)
dataloaders/datasets/informer.py:519
Methodsplit_train_val
(self, val_split)
dataloaders/datasets/sequence.py:71
Functionto_dict
Convert Sequence or Mapping object to dict lists get converted to {0: x[0], 1: x[1], ...}
utils/config.py:45
Functionto_list
Convert an object to list. If Sequence (e.g. list, tuple, Listconfig): just return it Special case: If non-recursive and not a list, wrap in
utils/config.py:61
Functiontrigger_compilation
Small function to trigger the compilation of a pykeops kernel Used in scenarios where we must manually control compilation, e.g. the multi-gpu c
model/functional/cauchy.py:222
Functionupdate_args_from_checkpoint_name
(args, fname)
utils/checkpoint.py:4
Functionvisualize_data
(dataloaders, splits=['train', 'val', 'test'], save=False, args=None, title=None)
dataloaders/informer.py:39
← previous201–270 of 270, ranked by callers