Transformers documentation

时间序列实用工具

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

时间序列实用工具

本页列出了所有可用于基于时间序列的模型的实用函数和类。

这些内容通常只在您研究时间序列模型的代码,或希望扩充分布输出类集合时才有用。

分布输出

class transformers.time_series_utils.NormalOutput

< >

( dim: int = 1 )

正态分布输出类。

正常

( *args**kwargs )

点分路径(例如 torch.float32)的模拟值:属性访问链和调用行为如同透传装饰器,repr 返回点分路径,将其用作基类时会替换为普通的 type 基类(PEP 560 __mro_entries__),因此真实的子类保留正常的元类,且 inspect.signature 读取的是它们真实的 __init__,而非模拟对象的。

class transformers.time_series_utils.StudentTOutput

< >

( dim: int = 1 )

Student-T 分布输出类。

StudentT

( *args**kwargs )

点分路径(例如 torch.float32)的模拟值:属性访问链和调用行为如同透传装饰器,repr 返回点分路径,将其用作基类时会替换为普通的 type 基类(PEP 560 __mro_entries__),因此真实的子类保留正常的元类,且 inspect.signature 读取的是它们真实的 __init__,而非模拟对象的。

class transformers.time_series_utils.NegativeBinomialOutput

< >

( dim: int = 1 )

负二项分布输出类。

NegativeBinomial

( *args**kwargs )

点分路径(例如 torch.float32)的模拟值:属性访问链和调用行为如同透传装饰器,repr 返回点分路径,将其用作基类时会替换为普通的 type 基类(PEP 560 __mro_entries__),因此真实的子类保留正常的元类,且 inspect.signature 读取的是它们真实的 __init__,而非模拟对象的。

Update on GitHub