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

Method __init__

functions.py:88–94  ·  view source on GitHub ↗
(self, occ, prc, lb, pt, device, adj)

Source from the content-addressed store, hash-verified

86
87class CreateDataset(Dataset):
88 def __init__(self, occ, prc, lb, pt, device, adj): # adj
89 occ, label = create_rnn_data(occ, lb, pt)
90 prc, _ = create_rnn_data(prc, lb, pt)
91 self.occ = torch.Tensor(occ)
92 self.prc = torch.Tensor(prc)
93 self.label = torch.Tensor(label)
94 self.device = device
95
96 def __len__(self):
97 return len(self.occ)

Callers

nothing calls this directly

Calls 1

create_rnn_dataFunction · 0.85

Tested by

no test coverage detected