Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/huggingface/transformers
/ mean
Method
mean
src/transformers/time_series_utils.py:42–46 ·
view source on GitHub ↗
Returns the mean of the distribution.
(self)
Source
from the content-addressed store, hash-verified
40
41
@property
42
def
mean(self):
43
""
"
44
Returns the mean of the distribution.
45
""
"
46
return
self.base_dist.mean * self.scale + self.loc
47
48
@property
49
def
variance(self):
Callers
15
compute_basic_statistics
Function · 0.45
_accumulate_ttft_and_itl
Method · 0.45
_init_added_embeddings_weights_with_mean
Method · 0.45
_init_added_lm_head_bias_with_mean
Method · 0.45
_approx_sq_grad
Method · 0.45
step
Method · 0.45
detect_overflow
Function · 0.45
load_audio_as
Function · 0.45
spectrogram
Function · 0.45
spectrogram_batch
Function · 0.45
_serialize_tensor_like_io
Function · 0.45
training_step
Method · 0.45
Calls
no outgoing calls
Tested by
15
_test_eager_matches_sdpa_inference
Function · 0.36
test_resize_tokens_embeddings
Method · 0.36
test_resize_embeddings_untied
Method · 0.36
test_can_load_ignoring_mismatched_shapes
Method · 0.36
_assert_tensors_equivalence
Method · 0.36
_test_tp_generation_impl
Function · 0.36
test_image_processor_defaults_preserved_by_image_kwargs
Method · 0.36
test_kwargs_overrides_default_image_processor_kwargs
Method · 0.36
test_unstructured_kwargs
Method · 0.36
test_unstructured_kwargs_batched
Method · 0.36
test_structured_kwargs_nested
Method · 0.36
test_structured_kwargs_nested_from_dict
Method · 0.36