| 11 | |
| 12 | |
| 13 | class VAR(nn.Module): |
| 14 | def __init__(self, node=247, seq=12, feature=2): # input_dim = seq_length |
| 15 | super(VAR, self).__init__() |
| 16 | self.linear = nn.Linear(node*seq*feature, node) |
| 17 | |
| 18 | def forward(self, occ, prc): |
| 19 | x = torch.cat((occ, prc), dim=2) |
| 20 | x = torch.flatten(x, 1, 2) |
| 21 | x = self.linear(x) |
| 22 | return x |
| 23 | |
| 24 | |
| 25 | class LSTM(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected