paddlets.models.anomaly.dl._mtad_gat.model

class Reconstruction(in_chunk_len: int, feature_dim: int, hidden_size: int, out_dim: int, num_layers: int, dropout: float)[源代码]

基类:Layer

基于重构的模型。

参数
  • in_chunk_len (int) – 模型输入的时间序列长度。

  • feature_dim (int) – 特征的维度。

  • hidden_size (int) – 隐层的节点数。

  • out_dim (int) – 输出的特征数。

  • num_layers (int) – 隐层的层数。

  • dropout (float) – dropout参数。

_in_chunk_len

模型输入的时间序列长度。

Type

int

_decoder

gru解码层。

Type

paddle.nn.Layer

_fc

全连接层。

Type

paddle.nn.Layer

forward(x)[源代码]

Forward

参数

x (paddle.Tensor) – 输入的数据。

返回

重建网络的输出。

返回类型

paddle.Tensor)

class Forecasting(feature_dim: int, hidden_size: int, out_dim: int, num_layers: int, dropout: float)[源代码]

基类:Layer

基于预测的模型。

参数
  • feature_dim (int) – 特征的维度。

  • hidden_size (int) – 隐层的节点数。

  • out_dim (int) – 输出的特征数。

  • num_layers (int) – 隐层的层数。

  • dropout (float) – dropout参数。

_layers

一组动态图Layer列表。

Type

paddle.nn.Sequential

_dropout

dropout层。

Type

paddle.nn.Dropout

_relu

relu层。

Type

paddle.nn.RelU

forward(x)[源代码]

Forward

参数

x (paddle.Tensor) – 输入的数据。

返回

预测模型的输出。

返回类型

paddle.Tensor)