MCPcopy Create free account

hub / github.com/BorealisAI/scaleformer / functions

Functions365 in github.com/BorealisAI/scaleformer

↓ 34 callersMethodabs
(self, x, y)
layers/utils.py:384
↓ 13 callersMethod__init__
(self, configs, n_s=0, n_x=0, n_s_hidden=
models/NHitsMS.py:404
↓ 12 callersMethod__init__
(self, configs, n_s=0, n_x=0, n_s_hidden=
models/NHits.py:390
↓ 11 callersMethodcpu
(self)
layers/utils.py:343
↓ 9 callersMethod__init__
(self, c_in, d_model, embed_type='fixed', freq='h', dropout=0.1)
layers/Embed.py:150
↓ 8 callersMethod__init__
(self, attn_layers, conv_layers=None, norm_layer=None)
layers/Autoformer_EncDec.py:144
↓ 6 callersFunction_downsample
Downsample by a factor of 2 using reflecting boundary conditions. This function convolves `x` with filter `f` with reflecting boundary conditions
robust_loss_pytorch/wavelet.py:168
↓ 6 callersFunction_upsample
Upsample by a factor of 2 using transposed reflecting boundary conditions. This function undecimates `x` along the axis specified by `direction` an
robust_loss_pytorch/wavelet.py:213
↓ 6 callersMethodtransform
(self, data)
utils/tools.py:90
↓ 5 callersMethod_get_data
(self, flag)
exp/exp_main.py:160
↓ 4 callersMethod__init__
(self, k=3, alpha=64, L=0, c=1, base='legendre',
layers/MultiWaveletCorrelation.py:307
↓ 4 callersMethod__init__
(self, mask_flag=True, factor=5, scale=None, attention_dropout=0.1, output_attention=False)
layers/SelfAttention_Family.py:24
↓ 4 callersMethod__init__
(self, attn_layers, conv_layers=None, norm_layer=None)
layers/Transformer_EncDec.py:75
↓ 4 callersFunctionpsi
(psi1, psi2, i, inp)
layers/utils.py:158
↓ 4 callersMethodscale
Returns an image of scales.
robust_loss_pytorch/adaptive.py:477
↓ 4 callersFunctiontime_features
(dates, freq='h')
utils/timefeatures.py:155
↓ 3 callersMethod__init__
(self, d=2, p=2, size_average=True, reduction=True)
layers/utils.py:373
↓ 3 callersMethod__init__
(self, configs, N=512, N2=32)
models/FiLMMS.py:211
↓ 3 callersMethodcuda
(self)
layers/utils.py:339
↓ 3 callersFunctionget_frequency_modes
get modes on frequency domain: 'random' means sampling randomly; 'else' means sampling the lowest modes;
layers/FourierCorrelation.py:32
↓ 3 callersFunctioninv_softplus
The inverse of tf.nn.softplus().
robust_loss_pytorch/util.py:52
↓ 3 callersMethodinverse_transform
(self, data)
data_provider/data_loader.py:519
↓ 3 callersMethodlossfun
Computes the loss on a matrix. Args: x: The residual for which the loss is being computed. Must be a rank-2 tensor, where the inner
robust_loss_pytorch/adaptive.py:184
↓ 3 callersMethodtrain
(self, setting)
exp/exp_main.py:230
↓ 3 callersMethodwavelet_transform
(self, x)
layers/MultiWaveletCorrelation.py:202
↓ 2 callersFunctionMSE
(pred, true)
utils/metrics.py:40
↓ 2 callersMethod__init__
Sets up the loss function. Args: num_dims: The number of dimensions of the input to come. float_dtype: The floating point precision o
robust_loss_pytorch/adaptive.py:55
↓ 2 callersMethod__init__
(self, configs, N=512, N2=32)
models/FiLM.py:197
↓ 2 callersFunction_check_resample_inputs
Checks the inputs to _downsample() and _upsample().
robust_loss_pytorch/wavelet.py:153
↓ 2 callersMethodalpha
Returns an image of alphas.
robust_loss_pytorch/adaptive.py:467
↓ 2 callersFunctiongenerate_filters
Generates the analysis and synthesis filters for a kind of wavelet. Currently only supports wavelet types where all filters have an odd length. T
robust_loss_pytorch/wavelet.py:35
↓ 2 callersFunctionget_filter
(base, k)
layers/utils.py:156
↓ 2 callersMethodlog_base_partition_function
r"""Approximate the distribution's log-partition function with a 1D spline. Because the partition function (Z(\alpha) in the paper) of the distri
robust_loss_pytorch/distribution.py:143
↓ 2 callersMethodnllfun
r"""Implements the negative log-likelihood (NLL). Specifically, we implement -log(p(x | 0, \alpha, c) of Equation 16 in the paper as nllfun(x
robust_loss_pytorch/distribution.py:171
↓ 2 callersFunctionpad_reflecting
Pads `x` with reflecting conditions above and/or below it along some axis. Pads `x` with reflecting conditions for `padding_below` entries below th
robust_loss_pytorch/wavelet.py:98
↓ 2 callersMethodsave_checkpoint
(self, val_loss, model, path)
utils/tools.py:71
↓ 2 callersMethodtest
(self, setting, test=0)
exp/exp_main.py:384
↓ 2 callersMethodtransform_to_mat
Transforms a batch of images to a matrix.
robust_loss_pytorch/adaptive.py:311
↓ 2 callersMethodvali
(self, vali_data, vali_loader, criterion)
exp/exp_main.py:175
↓ 2 callersFunctionvisual
Results visualization
utils/tools.py:97
↓ 1 callersFunctionMAE
(pred, true)
utils/metrics.py:36
↓ 1 callersFunctionMAPE
(pred, true)
utils/metrics.py:48
↓ 1 callersFunctionMSPE
(pred, true)
utils/metrics.py:52
↓ 1 callersFunctionRMSE
(pred, true)
utils/metrics.py:44
↓ 1 callersMethod__init__
(self, in_channels, out_channels, seq_len, modes=0, mode_select_method='random')
layers/FourierCorrelation.py:51
↓ 1 callersMethod__init__
(self, mask_flag=True, factor=1, scale=None, attention_dropout=0.1, output_attention=False)
layers/AutoCorrelation.py:35
↓ 1 callersMethod__init__
(self, args)
exp/exp_main.py:131
↓ 1 callersMethod__init__
(self, configs)
models/AutoformerMS.py:37
↓ 1 callersMethod__init__
(self, configs)
models/ReformerMS.py:42
↓ 1 callersMethod__init__
(self, configs)
models/PerformerMS.py:42
↓ 1 callersMethod__init__
(self, configs)
models/FEDformerMS.py:40
↓ 1 callersMethod__init__
(self, configs)
models/InformerMS.py:37
↓ 1 callersMethod__read_data__
(self)
data_provider/data_loader.py:55
↓ 1 callersMethod__read_data__
(self)
data_provider/data_loader.py:143
↓ 1 callersMethod__read_data__
(self)
data_provider/data_loader.py:348
↓ 1 callersMethod__read_data__
(self)
data_provider/data_loader.py:445
↓ 1 callersMethod_acquire_device
(self)
exp/exp_basic.py:34
↓ 1 callersMethod_build_model
(self)
exp/exp_basic.py:31
↓ 1 callersMethod_get_initial_context
(self, V, L_Q)
layers/SelfAttention_Family.py:85
↓ 1 callersFunction_legendre
(k, x)
layers/utils.py:34
↓ 1 callersMethod_prob_QK
(self, Q, K, sample_k, n_top)
layers/SelfAttention_Family.py:62
↓ 1 callersMethod_select_criterion
(self)
exp/exp_main.py:171
↓ 1 callersMethod_select_optimizer
(self, additional_params=None)
exp/exp_main.py:164
↓ 1 callersMethod_update_context
(self, context_in, V, scores, index, L_Q, attn_mask)
layers/SelfAttention_Family.py:96
↓ 1 callersFunctionadjust_learning_rate
(optimizer, epoch, args)
utils/tools.py:30
↓ 1 callersMethodcompl_mul1d
(self, x, weights)
layers/MultiWaveletCorrelation.py:285
↓ 1 callersMethodcompl_mul1d
(self, input, weights)
layers/FourierCorrelation.py:67
↓ 1 callersMethodcreate_stack
(self, stack_types, n_blocks, n_time_in, n_time_out, n_x, n_x_hidden
models/NHits.py:436
↓ 1 callersMethodcreate_stack
(self, stack_types, n_blocks, n_time_in, n_time_out, n_x, n_x_hidden
models/NHitsMS.py:461
↓ 1 callersFunctiondata_provider
(args, flag)
data_provider/data_factory.py:24
↓ 1 callersMethoddf
Returns an image of degrees of freedom, for the Student's T model.
robust_loss_pytorch/adaptive.py:472
↓ 1 callersMethodevenOdd
(self, x)
layers/MultiWaveletCorrelation.py:210
↓ 1 callersMethodevenOdd
(self, x)
layers/MultiWaveletCorrelation.py:378
↓ 1 callersMethodfit_length
(self, queries)
layers/SelfAttention_Family.py:191
↓ 1 callersFunctionflatten
Flattens a wavelet decomposition into an image-like single Tensor. construct() produces wavelet decompositions in the form of nested tuples, whic
robust_loss_pytorch/wavelet.py:412
↓ 1 callersMethodforecast
(self, insample_y: t.Tensor, insample_x_t: t.Tensor, insample_mask: t.Tensor, outsample_x_t:
models/NHits.py:528
↓ 1 callersMethodforecast
(self, insample_y: t.Tensor, insample_x_t: t.Tensor, insample_mask: t.Tensor, outsample_x_t:
models/NHitsMS.py:583
↓ 1 callersMethodforecast_decomposition
(self, insample_y: t.Tensor, insample_x_t: t.Tensor, insample_mask: t.Tensor, o
models/NHits.py:544
↓ 1 callersMethodforecast_decomposition
(self, insample_y: t.Tensor, insample_x_t: t.Tensor, insample_mask: t.Tensor, o
models/NHitsMS.py:599
↓ 1 callersMethodgaussian_cdf
(self, x)
exp/exp_main.py:56
↓ 1 callersMethodgaussian_crps
Compute the CRPS of observations x relative to gaussian distributed forecasts with mean, sigma. CRPS(N(mu, sig^2); x) Formula
exp/exp_main.py:74
↓ 1 callersMethodgaussian_pdf
Probability density function of a univariate standard Gaussian distribution with zero mean and unit variance.
exp/exp_main.py:49
↓ 1 callersFunctionget_max_num_levels
Returns the maximum number of levels that construct() can support. Args: sz: A tuple of ints representing some input size (batch, width, height
robust_loss_pytorch/wavelet.py:278
↓ 1 callersFunctionget_phi_psi
(k, base)
layers/utils.py:47
↓ 1 callersMethodinit_weights
(self)
models/NHits.py:74
↓ 1 callersMethodinit_weights
(self)
models/NHitsMS.py:88
↓ 1 callersFunctionlegendreDer
(k, x)
layers/utils.py:33
↓ 1 callersFunctionlogit
The inverse of tf.nn.sigmoid().
robust_loss_pytorch/util.py:58
↓ 1 callersFunctionmain
()
run.py:18
↓ 1 callersFunctionmetric
(pred, true)
utils/metrics.py:56
↓ 1 callersFunctionpartition_spline_curve
Applies a curve to alpha >= 0 to compress its range before interpolation. This is a weird hand-crafted function designed to take in alpha values an
robust_loss_pytorch/distribution.py:90
↓ 1 callersMethodpredict
(self, setting, load=False)
exp/exp_main.py:502
↓ 1 callersMethodprint
(self)
robust_loss_pytorch/adaptive.py:181
↓ 1 callersFunctionprob_loss_fn
from: https://github.com/husnejahan/DeepAR-pytorch/blob/master/net.py Compute using gaussian the log-likehood which needs to be maximized. Ig
exp/exp_main.py:97
↓ 1 callersMethodrel
(self, x, y)
layers/utils.py:400
↓ 1 callersMethodtime_delay_agg_inference
SpeedUp version of Autocorrelation (a batch-normalization style design) This is for the inference phase.
layers/AutoCorrelation.py:67
↓ 1 callersMethodtime_delay_agg_training
SpeedUp version of Autocorrelation (a batch-normalization style design) This is for the training phase.
layers/AutoCorrelation.py:43
↓ 1 callersFunctiontime_features_from_frequency_str
Returns a list of time features that will be appropriate for the given frequency string. Parameters ---------- freq_str Frequ
utils/timefeatures.py:98
↓ 1 callersMethodtransform
(self, insample_x_t, outsample_x_t)
models/NHits.py:230
↓ 1 callersMethodtransform
(self, insample_x_t, outsample_x_t)
models/NHits.py:257
next →1–100 of 365, ranked by callers