MCPcopy Create free account

hub / github.com/Victorletzelter/timeMCL / functions

Functions448 in github.com/Victorletzelter/timeMCL

↓ 1 callersMethod_generate_brownian_bridge
Generates batch_size Brownian Bridge trajectories.
toy/toy.py:84
↓ 1 callersMethod_generate_brownian_motion
Generates batch_size Brownian motion trajectories, extracts sub-trajectories.
toy/toy.py:54
↓ 1 callersFunction_split_series_time_dims
Convert a Tensor with dimensions [batch, series * time steps, ...] to one with dimensions [batch, series, time steps, ...]
tsExperiments/models/project_models/tactis2/model/decoder.py:32
↓ 1 callersMethod_standardize_columns
Standardize column names and perform necessary data transformations.
tsExperiments/stock_market_data/data_processors/yahoofinance.py:52
↓ 1 callersMethod_update_to_continuous_index
Replace the dataframe's datetime index with a continuous daily index. For each unique date in the original index, a new date
tsExperiments/stock_market_data/data_processors/creating_dataset.py:75
↓ 1 callersFunctionbuild_checkpoint_structure
Build a dictionary structure of checkpoints from specified dataset directories. Args: base_log_dir: Base path containing dataset-spe
tsExperiments/extract/extract_ckpts.py:151
↓ 1 callersFunctioncalc_time_zone
( ticker_list: List[str], time_zone_selfdefined: str, use_time_zone_selfdefined: int, )
tsExperiments/stock_market_data/data_processors/_base.py:312
↓ 1 callersMethodcalculate_aggregate_multivariate_metrics
Parameters ---------- ts_iterator Iterator over time series forecast_iterator Iterator over
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:700
↓ 1 callersMethodcalculate_aggregate_vector_metrics
Parameters ---------- all_agg_metrics dictionary with aggregate metrics of individual dimensions all_met
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:727
↓ 1 callersFunctioncheck_memory
Check the total memory and occupied memory for GPU
tsExperiments/models/project_models/tactis2/model/utils.py:20
↓ 1 callersMethodcompute_loss_min_ext_sum
(self, prediction_list, score_list, target_list)
tsExperiments/models/project_models/tMCL/utils.py:175
↓ 1 callersFunctioncompute_metric
( model_name, dataset_name, model_config="configs/model/deepVAR.yaml", nb_hyp=100, dataset
tsExperiments/computation_time/evaluate_time.py:57
↓ 1 callersFunctioncompute_metric_forecast
input : the forecasts from forecasts = list(forecast_it) metric func in "total_variation",
tsExperiments/utils/utils.py:263
↓ 1 callersMethodcompute_scale
( self, data: torch.Tensor, observed_indicator: torch.Tensor )
tsExperiments/data_and_transformation/scaler.py:19
↓ 1 callersMethodcompute_scale
( self, data: torch.Tensor, observed_indicator: torch.Tensor )
tsExperiments/data_and_transformation/scaler.py:197
↓ 1 callersMethodcompute_scale
( self, data: torch.Tensor, observed_indicator: torch.Tensor )
tsExperiments/data_and_transformation/scaler.py:256
↓ 1 callersFunctionconfiguration_to_extract
Filter and extract rows from csv_file based on config and hypothesis count.
tsExperiments/extract/extract_tables.py:38
↓ 1 callersFunctionconvert_numeric_values
Recursively convert string values in a dictionary (or list) to numeric values (int or float) if possible.
tsExperiments/computation_time/evaluate_time.py:28
↓ 1 callersFunctioncosine_beta_schedule
cosine schedule as proposed in https://openreview.net/forum?id=-NEXDKk8gZ
tsExperiments/models/project_models/timeGrad/utils.py:166
↓ 1 callersFunctioncount_flops_for_predictions
Count FLOPs for the prediction process
tsExperiments/computation_flops/flops_computation.py:10
↓ 1 callersMethodcreate_attentional_copula
(self)
tsExperiments/models/project_models/tactis2/model/decoder.py:120
↓ 1 callersMethodcreate_lightning_module
Create and return the network used for training (i.e., computing the loss). Returns ------- pl.LightningModu
tsExperiments/Estimator/pytorchLightingEstimator.py:60
↓ 1 callersFunctioncreate_masks
( input_size, hidden_size, n_hidden, input_order="sequential", input_degrees=None )
tsExperiments/data_and_transformation/flows.py:39
↓ 1 callersMethodcreate_predictor
( self, transformation: Transformation, module )
tsExperiments/models/project_models/tactis2/estimator.py:285
↓ 1 callersMethodcreate_predictor
Create and return a predictor object. Parameters ---------- transformation Transformation to be applied
tsExperiments/Estimator/pytorchLightingEstimator.py:72
↓ 1 callersMethodcreate_training_data_loader
(self, data: Dataset, module, **kwargs)
tsExperiments/models/project_models/tactis2/estimator.py:242
↓ 1 callersMethodcreate_training_data_loader
Create a data loader for training purposes. Parameters ---------- data Dataset from which to create the
tsExperiments/Estimator/pytorchLightingEstimator.py:94
↓ 1 callersMethodcreate_training_network
Create and return the network used for training (i.e., computing the loss). Returns ------- nn.Module
tsExperiments/Estimator/pytorchEstimator.py:76
↓ 1 callersMethodcreate_transformation
Add a transformation that replaces NaN in the input data with zeros, and mention whether the data was a NaN or not in another field.
tsExperiments/models/project_models/tactis2/estimator.py:223
↓ 1 callersMethodcreate_transformation
Create and return the transformation needed for training and inference. Returns ------- Transformation T
tsExperiments/Estimator/pytorchLightingEstimator.py:48
↓ 1 callersMethodcreate_validation_data_loader
( self, data: Dataset, module, **kwargs )
tsExperiments/models/project_models/tactis2/estimator.py:256
↓ 1 callersMethodcreate_validation_data_loader
Create a data loader for validation purposes. Parameters ---------- data Dataset from which to create th
tsExperiments/Estimator/pytorchLightingEstimator.py:113
↓ 1 callersMethoddenormalize
Undo the normalization done in the normalize() function. Parameters: ----------- norm_value: Tensor [batch, series,
tsExperiments/models/project_models/tactis2/model/tactis.py:135
↓ 1 callersMethoddescribe_inputs
(self, batch_size=1)
tsExperiments/models/project_models/tMCL/timeMCL_network.py:181
↓ 1 callersMethoddescribe_inputs
(self, batch_size=1)
tsExperiments/models/project_models/tactis2/network.py:97
↓ 1 callersMethoddescribe_inputs
(self, batch_size=1)
tsExperiments/models/project_models/timeGrad/timeGradNetwork.py:149
↓ 1 callersMethoddescribe_inputs
(self, batch_size=1)
tsExperiments/models/project_models/transformerTempFlow/transTempFlow_network.py:153
↓ 1 callersMethoddescribe_inputs
(self, batch_size=1)
tsExperiments/models/project_models/tempflow/tempflow_network.py:141
↓ 1 callersMethoddescribe_inputs
(self, batch_size=1)
tsExperiments/models/project_models/deepAR/network.py:132
↓ 1 callersMethoddisable_grads
(net, disable_grads)
tsExperiments/models/project_models/tactis2/lighting.py:38
↓ 1 callersMethoddownload_data
(self, ticker_list: List[str])
tsExperiments/stock_market_data/data_processors/_base.py:62
↓ 1 callersMethodextract_aggregate_forecast
( forecast_iterator: Iterator[Forecast], agg_fun: Callable )
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:666
↓ 1 callersMethodextract_aggregate_target
( it_iterator: Iterator[pd.DataFrame], agg_fun: Callable )
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:659
↓ 1 callersFunctionextract_column
(axs, col_idx)
tsExperiments/scripts_plot/plotting.py:486
↓ 1 callersFunctionextract_dataframe
( experiment_name, exp_id_provided=None, save_to_csv=True, override_saved=False, save_dir=
tsExperiments/download/scripts_download_csv.py:97
↓ 1 callersMethodextract_forecast_by_dim
( forecast_iterator: Iterator[Forecast], dim: int )
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:652
↓ 1 callersMethodextract_past_data
Parameters ---------- time_series forecast Returns ------- np.ndarray time seri
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:327
↓ 1 callersMethodextract_pred_target
Parameters ---------- time_series forecast Returns ------- np.ndarray time seri
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:300
↓ 1 callersMethodextract_target_by_dim
( it_iterator: Iterator[pd.DataFrame], dim: int )
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:645
↓ 1 callersFunctionforecast_ets
compute the forecasts from the BaseForecastModel
tsExperiments/models/project_models/ETS/utils.py:28
↓ 1 callersMethodforward
(self, x, y=None)
tsExperiments/data_and_transformation/flows.py:309
↓ 1 callersMethodforward
(self, x, cond)
tsExperiments/data_and_transformation/flows.py:355
↓ 1 callersMethodforward
Compute the embedding for each series and time step. Parameters: ----------- encoded: Tensor [batch, series, time st
tsExperiments/models/project_models/tactis2/model/encoder.py:86
↓ 1 callersMethodforward_logdet
Compute the cumulative density function of a marginal conditioned using the given context, for the given value of x. Also returns the
tsExperiments/models/project_models/tactis2/model/marginal.py:68
↓ 1 callersMethodforward_no_logdet
Transform the given value according to the given parameters, but does not compute the derivative of the transformation. param
tsExperiments/models/project_models/tactis2/model/flow.py:233
↓ 1 callersMethodforward_no_logdet
Compute the cumulative density function of a marginal conditioned using the given context, for the given value of x. Parameters:
tsExperiments/models/project_models/tactis2/model/marginal.py:102
↓ 1 callersFunctiongenerate_ARp_samples
Generates complete trajectories of an AR(p) process and extracts sub-trajectories. :param batch_size: Number of sub-trajectories
toy/toy.py:629
↓ 1 callersMethodgenerating_metaData
(self)
tsExperiments/stock_market_data/data_processors/creating_dataset.py:163
↓ 1 callersMethodget_base_metrics
( self, forecast: Forecast, pred_target, mean_fcst, median_fcst,
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:357
↓ 1 callersFunctionget_checkpoint_paths
Recursively find all checkpoint files in a folder. Args: folder_path: Path to the folder to search in Returns: List of
tsExperiments/extract/extract_ckpts.py:102
↓ 1 callersMethodget_eval_dims
(self, target_dimensionality: int)
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:688
↓ 1 callersFunctionget_module_forward_input_names
(module: nn.Module)
tsExperiments/Estimator/pytorchEstimator.py:31
↓ 1 callersFunctionget_prediction_flops
()
tsExperiments/computation_flops/flops_computation.py:112
↓ 1 callersFunctionget_prediction_flops_tactis
()
tsExperiments/computation_flops/flops_computation.py:79
↓ 1 callersFunctionget_prediction_flops_trf_tempflow
()
tsExperiments/computation_flops/flops_computation.py:18
↓ 1 callersMethodget_target_dimensionality
(forecast: Forecast)
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:679
↓ 1 callersMethodget_trading_days
(self, start, end)
tsExperiments/stock_market_data/data_processors/yahoofinance.py:281
↓ 1 callersMethodinitialize_stage2
(self)
tsExperiments/models/project_models/tactis2/model/tactis.py:403
↓ 1 callersFunctioninstantiate_callbacks
Instantiates callbacks from config. :param callbacks_cfg: A DictConfig object containing callback configurations. :return: A list of instanti
tsExperiments/utils/instantiators.py:13
↓ 1 callersFunctioninstantiate_loggers
Instantiates loggers from config. :param logger_cfg: A DictConfig object containing logger configurations. :return: A list of instantiated lo
tsExperiments/utils/instantiators.py:36
↓ 1 callersMethodinv_softplus
(self, y)
tsExperiments/distribution_output/utils.py:58
↓ 1 callersMethodinverse
(self, u, cond)
tsExperiments/data_and_transformation/flows.py:384
↓ 1 callersMethodinverse
NOTE: Added for compatability with Alex' notebook "ground_truth_copula.ipynb" demonstrating the 2-dimensional example This function
tsExperiments/models/project_models/tactis2/model/flow.py:247
↓ 1 callersFunctionis_usetex_available
()
toy/toy.py:777
↓ 1 callersFunctionlog_hyperparameters
Controls which config parts are saved by Lightning loggers. Additionally saves: - Number of model parameters :param object_dict: A d
tsExperiments/utils/logging_utils.py:14
↓ 1 callersMethodlog_prob
(self, x, y=None)
tsExperiments/data_and_transformation/flows.py:328
↓ 1 callersMethodlog_prob
(self, x, cond, *args, **kwargs)
tsExperiments/models/project_models/timeGrad/utils.py:400
↓ 1 callersMethodlog_prob
(self, target, distr_args)
toy/toy.py:222
↓ 1 callersFunctionlog_sum_exp
Compute a sum in logarithm space: log(exp(a) + exp(b)) Properly handle values which exponential cannot be represented in float32.
tsExperiments/models/project_models/tactis2/model/flow.py:34
↓ 1 callersFunctionlook_exact_path
Find the exact file path in the directory matching the given path pattern.
tsExperiments/extract/extract_tables.py:94
↓ 1 callersMethodloss_in_sum
(self, prediction_list, score_list, target_list)
tsExperiments/models/project_models/tMCL/utils.py:224
↓ 1 callersFunctionmain
(cfg: DictConfig)
tsExperiments/train.py:46
↓ 1 callersFunctionmain
Main function to run the checkpoint extraction script. Command line arguments: --log_dir: Base path containing dataset-specific log
tsExperiments/extract/extract_ckpts.py:245
↓ 1 callersFunctionmain
nb simu : the number of time you want to compute the models time nb_hyp: the number of hypothesis
tsExperiments/computation_time/evaluate_time.py:244
↓ 1 callersFunctionmain
(seed)
toy/plot.py:23
↓ 1 callersFunctionmake_predictions
(prediction_net, inputs: dict)
tsExperiments/models/project_models/tMCL/timeMCL_estimator.py:60
↓ 1 callersFunctionnoise_like
(shape, device, repeat=False)
tsExperiments/models/project_models/timeGrad/utils.py:158
↓ 1 callersFunctionnorm
(p)
tsExperiments/scripts_plot/train_viz.py:165
↓ 1 callersMethodp_losses
(self, x_start, cond, t, noise=None)
tsExperiments/models/project_models/timeGrad/utils.py:383
↓ 1 callersMethodp_mean_variance
(self, x, cond, t, clip_denoised: bool)
tsExperiments/models/project_models/timeGrad/utils.py:301
↓ 1 callersMethodp_sample_loop
(self, shape, cond)
tsExperiments/models/project_models/timeGrad/utils.py:326
↓ 1 callersFunctionparse_folder_name
Parse a folder name to extract its components. Args: folder_name: String in format: 'YYYY-MM-DD_HH-MM-SS_dataset_model_n
tsExperiments/extract/extract_ckpts.py:43
↓ 1 callersMethodpeek
(iterator: Iterator[Any])
tsExperiments/models/project_models/tMCL/personnalized_evaluator.py:673
↓ 1 callersFunctionplot_ARp_quantization
( batch_size, nb_discretization_points, interval_length, coefficients, sigma, t_
toy/toy.py:618
↓ 1 callersFunctionplot_brownian_bridge
( interval_length, nb_discretization_points, m, N_levels, a, b, t_condition
toy/toy.py:354
↓ 1 callersFunctionplot_brownien
( T, t_condition, pred_length, num_steps, m, N_levels, trained_model, ax=None )
toy/toy.py:496
↓ 1 callersFunctionplot_forecasts_for_dimension
Plot the history and forecasts with the mean trajectory. Also save the data in a pkl file.
tsExperiments/scripts_plot/train_viz.py:77
↓ 1 callersFunctionplot_mcl
Plot forecasts from either timeMCL or TimeGrad models. Args: ... (existing args) ... is_mcl: Whether the forecasts come from
tsExperiments/scripts_plot/plottimeMCL.py:46
↓ 1 callersFunctionplot_method_column
Plot a single method's results in one column
tsExperiments/scripts_plot/plotting.py:676
↓ 1 callersFunctionplot_multiple_methods
Plot different methods side by side Args: dataset: str, name of the dataset methods: list of str, names of methods to plot (e
tsExperiments/scripts_plot/plotting.py:416
← previousnext →101–200 of 448, ranked by callers