gluonts.torch.distributions.generalized_pareto 模块#
- class gluonts.torch.distributions.generalized_pareto.GeneralizedPareto(xi, beta, validate_args=None)[source]#
- 基类: - torch.distributions.distribution.Distribution- 广义帕累托分布。 - arg_constraints = {'beta': GreaterThan(lower_bound=0.0), 'xi': GreaterThan(lower_bound=0.0)}#
 - has_rsample = False#
 - property stddev#
- 返回分布的标准差。 
 - support = GreaterThan(lower_bound=0.0)#
 
- class gluonts.torch.distributions.generalized_pareto.GeneralizedParetoOutput[source]#
- 基类: - gluonts.torch.distributions.distribution_output.DistributionOutput- distribution(distr_args, loc: Optional[torch.Tensor] = None, scale: Optional[torch.Tensor] = None) gluonts.torch.distributions.generalized_pareto.GeneralizedPareto[source]#
- 根据构造函数参数集合和可选的尺度张量,构造关联的分布。 - 参数
- distr_args – 底层 Distribution 类型的构造函数参数。 
- loc – 可选张量,形状与结果分布的 batch_shape+event_shape 相同。 
- scale – 可选张量,形状与结果分布的 batch_shape+event_shape 相同。 
 
 
 - classmethod domain_map(xi: torch.Tensor, beta: torch.Tensor) Tuple[torch.Tensor, torch.Tensor][source]#
- 将参数转换为正确的形状和域。 - 域取决于分布的类型,而正确的形状是通过重塑尾随轴获得的,以便返回的张量定义具有正确 event_shape 的分布。 
 - property event_shape: Tuple#
- 与输出对象兼容的每个独立事件的形状。