MCPcopy Create free account
hub / github.com/IntelligentSystemsLab/ST-EVCDP / VAR

Class VAR

baselines.py:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13class 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
25class LSTM(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected