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

Method __init__

baselines.py:26–31  ·  view source on GitHub ↗
(self, seq, n_fea, node=247)

Source from the content-addressed store, hash-verified

24
25class LSTM(nn.Module):
26 def __init__(self, seq, n_fea, node=247):
27 super(LSTM, self).__init__()
28 self.nodes = node
29 self.encoder = nn.Conv2d(self.nodes, self.nodes, (n_fea, n_fea)) # input.shape: [batch, channel, width, height]
30 self.lstm = nn.LSTM(self.nodes, self.nodes, num_layers=2, batch_first=True)
31 self.decoder = nn.Linear(seq-n_fea+1, 1)
32
33 def forward(self, occ, prc): # occ.shape = [batch, node, seq]
34 x = torch.stack([occ, prc], dim=3)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected