MCPcopy Create free account

hub / github.com/google-research/timesfm / types & classes

Types & classes88 in github.com/google-research/timesfm

↓ 13 callersClassCheckResult
timesfm-forecasting/scripts/check_system.py:75
↓ 10 callersClassRMSNorm
RMS normalization.
src/timesfm/flax/normalization.py:29
↓ 10 callersClassResidualBlockConfig
Framework-agnostic config for a residual block.
src/timesfm/configs.py:64
↓ 7 callersClassForecastConfig
Options for forecasting. Attributes: max_context: The maximum context length. This is used by the compiled decode function at inference t
src/timesfm/configs.py:22
↓ 6 callersClassRMSNorm
RMS normalization.
src/timesfm/torch/normalization.py:21
↓ 6 callersClassTimesFM_2p5_200M_torch
PyTorch implementation of TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_torch.py:259
↓ 5 callersClassRandomFourierFeaturesConfig
Framework-agnostic config for random fourier features.
src/timesfm/configs.py:75
↓ 5 callersClassResidualBlock
Residual block with two linear layers and a linear residual connection.
src/timesfm/flax/dense.py:34
↓ 4 callersClassRandomFourierFeatures
Random Fourier features layer.
src/timesfm/flax/dense.py:72
↓ 3 callersClassDoraThetaDescriptor
Dot syntax accession descriptor.
v1/src/adapter/dora_layers.py:76
↓ 3 callersClassFinetuningConfig
Configuration for model training. Args: batch_size: Number of samples per batch. num_epochs: Number of training epochs. learnin
v1/src/finetuning/finetuning_torch.py:120
↓ 3 callersClassLoraThetaDescriptor
Dot syntax accession descriptor.
v1/src/adapter/lora_layers.py:67
↓ 3 callersClassTransformerConfig
Framework-agnostic config for a transformer.
src/timesfm/configs.py:85
↓ 2 callersClassDecodeCache
Cache for decoding.
src/timesfm/flax/util.py:33
↓ 2 callersClassExperimentHandler
v1/experiments/extended_benchmarks/utils.py:59
↓ 2 callersClassMEMORYSTATUSEX
timesfm-forecasting/scripts/check_system.py:150
↓ 2 callersClassPatchedTimeSeriesDecoder
Patched time-series decoder.
v1/src/timesfm/pytorch_patched_decoder.py:574
↓ 2 callersClassResidualBlock
TimesFM residual block.
v1/src/timesfm/pytorch_patched_decoder.py:239
↓ 2 callersClassStackedTransformersConfig
Framework-agnostic config for a stacked transformers.
src/timesfm/configs.py:101
↓ 2 callersClassTimeSeriesDataset
Dataset for time series data compatible with TimesFM.
v1/src/finetuning/finetuning_example.py:51
↓ 2 callersClassTimesFMFinetuner
Handles model training and validation. Args: model: PyTorch model to train. config: Training configuration. rank: Process rank
v1/src/finetuning/finetuning_torch.py:162
↓ 2 callersClassTimesFM_2p5_200M_flax_module
TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_flax.py:85
↓ 1 callersClassDistributedManager
Manages distributed training setup and cleanup. Args: world_size: Total number of processes. rank: Process rank. master_addr: A
v1/src/finetuning/finetuning_torch.py:78
↓ 1 callersClassDoraTheta
v1/src/adapter/dora_layers.py:23
↓ 1 callersClassLoraTheta
v1/src/adapter/lora_layers.py:23
↓ 1 callersClassMultiHeadAttention
Multi-head attention.
src/timesfm/torch/transformer.py:169
↓ 1 callersClassMultiHeadAttention
Multi-head attention.
src/timesfm/flax/transformer.py:134
↓ 1 callersClassPerDimScale
Per-dimension scaling.
src/timesfm/torch/transformer.py:154
↓ 1 callersClassPerDimScale
Per-dimension scaling.
src/timesfm/flax/transformer.py:118
↓ 1 callersClassPositionalEmbedding
Generates position embedding for a given 1-d sequence. Attributes: min_timescale: Start of the geometric index. Determines the periodicity of
v1/src/timesfm/pytorch_patched_decoder.py:518
↓ 1 callersClassRMSNorm
Pax rms norm in pytorch.
v1/src/timesfm/pytorch_patched_decoder.py:271
↓ 1 callersClassRotaryPositionalEmbedding
Rotary positional embedding.
src/timesfm/torch/transformer.py:56
↓ 1 callersClassRotaryPositionalEmbedding
Rotary positional embedding.
src/timesfm/flax/transformer.py:67
↓ 1 callersClassStackedDecoder
Stacked transformer layer.
v1/src/timesfm/pytorch_patched_decoder.py:468
↓ 1 callersClassSystemReport
timesfm-forecasting/scripts/check_system.py:90
↓ 1 callersClassTimeGPT
Borrowed from https://github.com/Nixtla/nixtla/tree/main/experiments/foundation-time-series-arena/xiuhmolpilli/models. We modify the class to tak
v1/experiments/baselines/timegpt_pipeline.py:152
↓ 1 callersClassTimeSeriesLastWindowDataset
Validation dataset using the last window of each series.
timesfm-forecasting/examples/finetuning/finetune_lora.py:115
↓ 1 callersClassTimeSeriesRandomWindowDataset
Random-window dataset for time series fine-tuning. Pre-samples random (series, split-point) windows similar to Chronos-2's random slicing. E
timesfm-forecasting/examples/finetuning/finetune_lora.py:56
↓ 1 callersClassTimeSeriesdata
Data loader class.
v1/src/timesfm/data_loader.py:27
↓ 1 callersClassTimesFMAttention
Implements the attention used in TimesFM.
v1/src/timesfm/pytorch_patched_decoder.py:320
↓ 1 callersClassTimesFMConfig
Config for initializing timesfm patched_decoder class.
v1/src/timesfm/pytorch_patched_decoder.py:29
↓ 1 callersClassTimesFMDecoderLayer
Transformer layer.
v1/src/timesfm/pytorch_patched_decoder.py:418
↓ 1 callersClassTimesFM_2p5_200M_flax
Flax implementation of TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_flax.py:445
↓ 1 callersClassTimesFM_2p5_200M_torch_module
TimesFM 2.5 with 200M parameters.
src/timesfm/timesfm_2p5/timesfm_2p5_torch.py:36
↓ 1 callersClassTimesFmCheckpoint
Checkpoint used to initialize a TimesFM model for inference. Attributes: version: Version of the checkpoint, e.g. "jax", "torch", "tensorflow",
v1/src/timesfm/timesfm_base.py:184
↓ 1 callersClassTimesFmHparams
Hparams used to initialize a TimesFM model for inference. These are the sufficient subset of hparams to configure TimesFM inference agnostic to t
v1/src/timesfm/timesfm_base.py:145
↓ 1 callersClassTransformerMLP
Pax transformer MLP in pytorch.
v1/src/timesfm/pytorch_patched_decoder.py:297
↓ 1 callersClassWandBLogger
Weights & Biases implementation of metrics logging. Args: project: Name of the W&B project. config: Configuration dictionary to log.
v1/src/finetuning/finetuning_torch.py:46
ClassBatchedInContextXRegBase
Helper class for in-context regression covariate formatting. Attributes: targets: List of targets (responses) of the in-context regression.
src/timesfm/utils/xreg_lib.py:72
ClassBatchedInContextXRegBase
Helper class for in-context regression covariate formatting. Attributes: targets: List of targets (responses) of the in-context regression.
v1/src/timesfm/xreg_lib.py:56
ClassBatchedInContextXRegLinear
Linear in-context regression model.
src/timesfm/utils/xreg_lib.py:411
ClassBatchedInContextXRegLinear
Linear in-context regression model.
v1/src/timesfm/xreg_lib.py:389
ClassDecodeCache
Cache for decoding.
src/timesfm/torch/util.py:24
ClassDoraAttentionProjection
v1/src/adapter/dora_layers.py:121
ClassDoraCombinedQKVProjection
v1/src/adapter/dora_layers.py:166
ClassDoraLinear
v1/src/adapter/dora_layers.py:83
ClassForecaster
Borrowed from https://github.com/Nixtla/nixtla/tree/main/experiments/foundation-time-series-arena/xiuhmolpilli/models.
v1/experiments/baselines/timegpt_pipeline.py:84
ClassLayerNorm
Layer normalization replica of LayerNorm.
src/timesfm/flax/normalization.py:53
ClassLoraAttentionProjection
v1/src/adapter/lora_layers.py:103
ClassLoraCombinedQKVProjection
v1/src/adapter/lora_layers.py:139
ClassLoraLinear
v1/src/adapter/lora_layers.py:74
ClassMetricsLogger
Abstract base class for logging metrics during training. This class defines the interface for logging metrics during model training. Concrete
v1/src/finetuning/finetuning_torch.py:21
ClassPatchedDecoderFinetuneModel
Model class for finetuning patched time-series decoder. Attributes: core_layer_tpl: config for core layer. freq: freq to finetune on.
v1/src/timesfm/patched_decoder.py:482
ClassPatchedTimeSeriesDecoder
Patch decoder layer for time-series foundation model. Attributes: patch_len: length of input patches. horizon_len: length of output patches
v1/src/timesfm/patched_decoder.py:211
ClassRandomFourierFeatures
Random Fourier features layer.
src/timesfm/torch/dense.py:59
ClassResidualBlock
Residual block with two linear layers and a linear residual connection.
src/timesfm/torch/dense.py:23
ClassResidualBlock
Simple feedforward block with residual connection. Attributes: input_dims: input dimension. hidden_dims: hidden dimension. output_dims:
v1/src/timesfm/patched_decoder.py:84
ClassTestDecodeCache
Tests for the DecodeCache dataclass used in KV-cache decoding.
tests/test_torch_utils.py:309
ClassTestForecastConfig
Tests for ForecastConfig — the primary user-facing configuration.
tests/test_configs.py:42
ClassTestLinearInterpolation
Tests for linear_interpolation — fills NaN gaps via ``np.interp``.
tests/test_base_utils.py:99
ClassTestModelLoading
Tests to verify model instantiation, loading, and compatibility.
tests/test_model_loading.py:25
ClassTestRMSNorm
Tests for RMS normalization used in transformer attention/FF blocks.
tests/test_torch_layers.py:150
ClassTestRandomFourierFeatures
Tests for the random Fourier feature layer.
tests/test_torch_layers.py:207
ClassTestRandomFourierFeaturesConfig
Tests for RandomFourierFeaturesConfig.
tests/test_configs.py:185
ClassTestResidualBlock
Tests for the residual block: hidden → activation → output + skip.
tests/test_torch_layers.py:37
ClassTestResidualBlockConfig
Tests for ResidualBlockConfig used by tokenizer and output projections.
tests/test_configs.py:104
ClassTestRevIN
Tests for the RevIN normalization used in patched decoding.
tests/test_torch_utils.py:186
ClassTestStripLeadingNans
Tests for strip_leading_nans — removes leading NaN prefix.
tests/test_base_utils.py:37
ClassTestTransformerConfig
Tests for TransformerConfig — architecture-level hyperparameters.
tests/test_configs.py:136
ClassTestUpdateRunningStats
Tests for Welford-style online mean / variance accumulation.
tests/test_torch_utils.py:40
ClassTimeCovariates
Extract all time covariates except for holidays.
v1/src/timesfm/time_features.py:112
ClassTimesFM_2p5
Abstract base class for TimesFM models. Attributes: forecast_config: Configuration for forecasting flags. compiled_decode: Compiled decode
src/timesfm/timesfm_2p5/timesfm_2p5_base.py:134
ClassTimesFM_2p5_200M_Definition
Framework-agnostic config of TimesFM 2.5.
src/timesfm/timesfm_2p5/timesfm_2p5_base.py:85
ClassTimesFmBase
Base TimesFM forecast API for inference. This class is the scaffolding for calling TimesFM forecast. To properly use: 1. Create an instance wit
v1/src/timesfm/timesfm_base.py:205
ClassTimesFmJax
TimesFM forecast API for inference. This class is the scaffolding for calling TimesFM forecast. To properly use: 1. Create an instance with the
v1/src/timesfm/timesfm_jax.py:41
ClassTimesFmTorch
TimesFM forecast API for inference.
v1/src/timesfm/timesfm_torch.py:30
ClassTransformer
Classic Transformer used in TimesFM.
src/timesfm/torch/transformer.py:307
ClassTransformer
Classic Transformer used in TimesFM.
src/timesfm/flax/transformer.py:291